', ''); $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)