$value) { global $$varname; $$varname = $value; } } } $order = explode("\r\n", trim(chunk_split($order, 1))); foreach($order as $k) { switch(strtolower($k)) { case 'e': register_global_array($_ENV); break; case 'g': register_global_array($_GET); break; case 'p': register_global_array($_POST); break; case 'c': register_global_array($_COOKIE); break; case 's': register_global_array($_SERVER); break; } } } register_globals(); srand(); require "nastaveni.php"; require "${cesta_system}connect.php"; require "${cesta_system}funkce.php"; global $spojeni; global $email; global $heslo; global $stranka; global $uzivatel; global $uroven; global $id_uzivatele; global $zmenit; // Fix for removed Session functions function fix_session_register(){ function session_register(){ $args = func_get_args(); foreach ($args as $key){ $_SESSION[$key]=$GLOBALS[$key]; } } function session_is_registered($key){ return isset($_SESSION[$key]); } function session_unregister($key){ unset($_SESSION[$key]); } } if (!function_exists('session_register')) fix_session_register(); session_register("nastaveni"); if (!is_array($nastaveni)) $nastaveni=array(); if (isset($id)) $nast["id"]=$id; require "${cesta_system}akce.php"; $uzivatel=$hlaseni["nezalogovany"]; $id_uzivatele=0; $uroven=2; // $vratit=0; if ($nastaveni["uzivatel"]["login"]) { $dotaz="select * from prispevatele where (login_id='".$nastaveni["uzivatel"]["login"]."');"; if ($vysledek = @dotaz($dotaz)) { if (@mysqli_num_rows($vysledek)==1) { $zaznam = mysqli_fetch_row($vysledek); $uzivatel = $zaznam["jmeno"]." ".$zaznam["prijmeni"]; $id_uzivatele = $zaznam["id_prispevatele"]; $uroven= $zaznam["uroven"]; } } } require "${cesta_system}objekty.php"; require "${cesta_system}inc.php"; ob_start(); if (file_exists($cesta_php.$stranka)) { if ($uroven<=$povoleni) require $cesta_php.$stranka; else { chyba($hlaseni["prava"]); $sablona=0; } } else { error($hlaseni["soubor_1"].$hlaseni["soubor_2"]); } $obsah_stranky=ob_get_contents(); ob_end_clean(); if ($vratit&&(!(strlen($chyba)||strlen($error)||strlen($zprava)))) { header("Location: $minule_zpet"); exit; } require "${cesta_system}hlavicka.php"; include "pred_".$sablona.".php"; if ($zprava) { echo "

".$zprava.((isset($minule_zpet)) ? "

".$hlaseni["zpet"]."":"")."

"; } if ($chyba) { echo "

".$chyba.((isset($minule_zpet)) ? "

".$hlaseni["zpet"]."":"")."

"; } if ($error) { echo "

".$error."



"; if (dotaz("insert into errory VALUES (NULL, '".addslashes(mb_ereg_replace("
","\n",$error)."\n\n".$interni)."',NOW());")) { $eid="".$hlaseni["uvedte"]." ".mysqli_insert_id($GLOBALS['spojeni_master']).". "; } ob_start(); echo "------------------------ ERROR ".sprintf("%'--6s",mysqli_insert_id($GLOBALS['spojeni_master'])." ")."------------------------\n"; echo mb_ereg_replace("
","\n",$error)."\n"; echo "-------------------------------------------------------------\n"; echo $interni."\n"; echo "-------------------------------------------------------------\n"; echo $zpet."\n"; echo "-------------------------------------------------------------\n"; print_r($GLOBALS); echo "--------------------- KONEC ERRORU ".sprintf("%'--6s",mysqli_insert_id($GLOBALS['spojeni_master'])." ")."--------------------\n"; $podrobnejsi=ob_get_contents(); ob_end_clean(); //@posli("","info@worldlive.cz","ERROR ".mysql_insert_id($GLOBALS['spojeni_master']),ereg_replace("
","\n",$error)."\n----------------------------------------------\n".$interni."\n----------------------------------------------\n".$zpet."\n----------------------------------------------\n".$_SERVER["REMOTE_ADDR"],"",""); /* if ($f=fopen("error.log","a+")) { if (filesize("error.log")<1000000) { fwrite($f,$podrobnejsi); } fclose($f); } */ echo "

".$hlaseni["zavazna_1"]."".$hlaseni["zavazna_2"].". ".$hlaseni["zavazna_3"]." ${eid}".$hlaseni["zavazna_4"]." WorldLIVE team

"; } if (!($error || $chyba||$zprava)) echo $obsah_stranky; // $f=fopen("zdroj.txt","w"); // fwrite($f,$obsah_stranky); // fclose($f); // phpinfo(); include "za_".$sablona.".php"; ?>