'; $gui_yes = ""; $gui_no = ""; // ---------------------------------------------------------------------------- function showhelp($anchor, $comment, $button) { return ""; } // ---------------------------------------------------------------------------- function showhelpsmall($anchor, $comment) { return ""; } // ---------------------------------------------------------------------------- function isadmin() { return ( isset($_COOKIE['hahaadmin']) && ($_COOKIE['hahaadmin']=='16234897') ); } // ---------------------------------------------------------------------------- function main_menu() { echo "
"; } function main_put($script, $link) { $this_script = substr($_SERVER['REQUEST_URI'], strrpos($_SERVER['REQUEST_URI'],'/')+1); if (!strlen($this_script)) $this_script = 'index.php'; if (!preg_match("/^(.*\.php)(\?){0,1}(f=\w+){0,1}.*$/", $this_script, $parts)) die('erronuous menudefinition'); if ( (isset($parts[3]) && ($script != $parts[1] . "?" . $parts[3])) || (!isset($parts[3]) && ($script != $parts[1])) ) return "$link\n"; else return "$link\n"; } // ---------------------------------------------------------------------------- function page_header() { $bodypars = func_num_args() ? " " . func_get_arg(0) : ""; $t=$GLOBALS['p_title']; echo " $t "; } // ---------------------------------------------------------------------------- function page_footer() { echo ' '; } // ---------------------------------------------------------------------------- function template($file) { // variables in templates files look like "{$varname}" or "" // (without the quotes in both case). // the $varname variable MUST be global. $tfile=fopen($file,'r'); $tcontent=fread($tfile, filesize($file)); fclose($tfile); while (!(strpos($tcontent, '{$')===false)) { $start=strpos($tcontent, '{$'); $end=strpos($tcontent, '}', $start); $name=substr($tcontent, $start+2, $end-$start-2); $thalf1=substr($tcontent, 0, $start); $thalf2=substr($tcontent, $end+1); if (isset($GLOBALS[$name])) $tcontent = $thalf1 . $GLOBALS[$name] . $thalf2; else $tcontent = $thalf1 . "" . $thalf2; } while (!(strpos($tcontent, '', $start); $name=substr($tcontent, $start+5, $end-$start-5); $thalf1=substr($tcontent, 0, $start); $thalf2=substr($tcontent, $end+3); if (isset($GLOBALS[$name])) $tcontent = $thalf1 . $GLOBALS[$name] . $thalf2; else $tcontent = $thalf1 . "" . $thalf2; } return $tcontent; } function banner($path) { //include("http://www.travelport.hu/portalinc/banner_counter.php?bp=427"); //global $path_swf; //$path_swf = $path; echo template($_SERVER['DOCUMENT_ROOT']."/banner/banner.htm"); } ?> Database layer malfunction In script:" . $HTTP_SERVER_VARS["REQUEST_URI"] . " Message:" . $errmsg . " Database query:$query Query measure:$querycounter "; die(); } ?>