$DBHost = "localhost";
$DBUser = "u_brp";
$DBPass = "f1r3@nts";
$DBName = "db_chaosproject";
$WPHost = "localhost";
$WPUser = "u_brp";
$WPPass = "f1r3@nts";
$WPName = "db_brp";
$bDBSuccess = false;
$bSuccess = false;
if (strtoupper(substr(PHP_OS,0,3)=='WIN')) {
$eol="\r\n";
} elseif (strtoupper(substr(PHP_OS,0,3)=='MAC')) {
$eol="\r";
} else {
$eol="\n";
}
function TextFormat($sInput)
{
extract($GLOBALS);
if ($sInput == '') { $sInput = 'Unknown';}
$elements = array('
', '
');
$replacements = array('', '');
$sInput = str_replace($elements, $replacements, $sInput);
// $sInput = htmlentities($sInput, ENT_QUOTES, 'UTF-8');
$function_ret=str_replace("\r\n","
",$sInput);
return $function_ret;
}
function AnyFormat($sInput)
{
extract($GLOBALS);
if ($sInput == '') { $sInput = 'Any';}
// $sInput = htmlentities($sInput, ENT_QUOTES, 'UTF-8');
$function_ret = str_replace("\r\n","
",$sInput);
return $function_ret;
}
function ShowLocation($sInputIn,$sInputOut)
{
extract($GLOBALS);
if ($sInputIn == 1 && $sInputOut == 1) {
$function_ret="Indoor/Outdoor";
}
elseif ($sInputIn == 1 && $sInputOut == 0) {
$function_ret="Indoor";
}
elseif ($sInputIn == 0 && $sInputOut == 1) {
$function_ret="Outdoor";
}
else {
$function_ret="Nowhere";
}
return $function_ret;
}
function SetSelected($sInputA,$sInputB) {
if ($sInputA == $sInputB) {
$function_ret = " selected=\"selected\"";
}
else {
$function_ret = "";
}
return $function_ret;
}
function SetChecked($sInput) {
settype( $sInput, "integer" );
if ($sInput == 1) {
$function_ret = " checked=\"checked\"";
}
else {
$function_ret = "";
}
return $function_ret;
}
if (isset($_REQUEST["page"])) { $sPage = $_REQUEST["page"]; } else { $sPage = "none"; }
if (isset($_REQUEST["action"])) { $sAction = $_REQUEST["action"]; } else { $sAction = "none"; }
?>
Chaos Project (Alpha Development)