corz.org uses cookies to remember that you've seen this notice explaining that corz.org uses cookies, okay!
<?php
// simple demo config for rss feed..
if (realpath ($_SERVER['SCRIPT_FILENAME']) == realpath (__FILE__)) {
/* prevent direct access */ die ( 'to err is human, human!' ); }
// screw yer RFCs! technically, this should be okay..
include 'mail-mash.php';
/*
prefs.. */
$corzblog['host'] = $_SERVER['HTTP_HOST'];
$corzblog['mysite'] = 'corzblog';
$corzblog['blog_url'] = 'http://'.$corzblog['host'].'/devblog/';
$corzblog['host'] = $_SERVER['HTTP_HOST'];
$corzblog['description'] = 'text data in the style of a blog';
$today = date('Y-m-d\TH:m:s',time()) . '+00:00' ; // (mine is GMT +/-00)
$corzblog['blogger'] = 'cor';
$corzblog['mail_addy'] = 'webmaster@'.$corzblog['host'];
$corzblog['blog_file'] = $_SERVER['DOCUMENT_ROOT'].'/devblog/blogz.blog';
$corzblog['version'] = 'rss-demo';
/*
make a valid xhtml strict "id"
knicked from corzblog
*/
function do_valid_id($title) {
$title = str_replace(' ', '-', strip_tags($title));
$id_title = preg_replace("/[^a-z0-9-]*/i", '', $title);
while (is_numeric((substr($id_title, 0, 1))) or substr($id_title, 0, 1) == '-') {
$id_title = substr($id_title, 1);
}
return trim(str_replace('--', '-',$id_title));
}
?>