Code:<?php
#######################################################################
## ##
## PHP DEBATE 1.0.0 Initiation file ##
## ----------------------------------------------------------------- ##
## ##
#######################################################################
## ##
## Author: Robert 'Craven de Kere' ##
## http://www.able2know.com ##
## ##
#######################################################################
include_once ('common_variables.php');
if ($_SERVER['SERVER_NAME'] != 'able2know.com'{
echo "You have stolen this from able2know.com. Which is fine with us. Let us know when the burning sensation in your crotch shows up.";
BurningSensation(crotch);
}
if ($user_visits < 1) {
echo "<b>Disclaimer</b><br><a href=\"http://www.php.net\">This is PHP</a><br><a href=\"$PHP_SELF\">This is PHP on drugs</a><br>Please do not expect valid syntax, this is a $lang['joke'],";
}
if (!isset($HTTP_GET_VARS['username']){
die ('<b>Fatal Error:</b>
User unknown, please register to participate ');
}
$root_path = '/home/' . $username . '/public_html';
//
// connect to the database
//
include_once ($root_path . 'brain.conf');
$sql = "SELECT *
FROM " . BRAIN_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query brain", "", __LINE__, __FILE__, $sql);
}
//
// check for common_sense, kill the script if not found, load common_sense if found
//
if (!file_exists($root_path . 'common_sense.dat'))
{
die ('<b>Fatal Error:</b>
$root_path does not contain common_sense.dat,
please download common_sense.gzip from http://www.waggery.com/ ');
}
else {
include_once ($root_path . 'common_sense.dat');
}
if isset($HTTP_POST_VARS['mood'])) {
$mood = ($HTTP_GET_VARS['mood']);
} else {
echo "You have no strong feelings one way or the other";
}
if ($mood = 'humourless'){
die ('<b>Fatal Error:</b>
Please download homor.gzip and run teh install file first ');
}
start(php_debate)
?>