$value) { $$key = $value; } foreach ($_GET as $key => $value) { $$key = $value; } foreach ($_POST as $key => $value) { $$key = $value; } require("functions.inc.php"); if ($test != "ok" && $cookiefailure == "yes") { openhtml(); top(); failure(); foot(); closehtml(); exit; } if ($test != "ok") { if (!isset($try)) { $try = "jo"; } test($try); } else { if ($action == "view" && !(!isset($kng) || $kng == "N;" || $kng == "out")) { openhtml(); top(); listaime(); tabletop(); $p = 1; $tmp = unserialize(stripslashes($kng)); if (is_array($tmp)) { foreach($tmp as $kot) { rrjeshto($kot, $p); $p++; } } tablebottom(); renditform(); foot(); closehtml(); } if ($action == "shto") { if (!isset($listaime)) { header ("Location: ".$PHP_SELF."?action=view"); exit; } if (isset($kng) && !(!isset($kng) || $kng == "N;" || $kng == "out")) { $tmp = unserialize(stripslashes($kng)); foreach($tmp as $kot) { if (!in_array($kot, $listaime)) { $listaime[] = $kot; } } } storecook($listaime); header ("Location: ".$PHP_SELF."?action=view"); exit; } if ($action == "deletesel") { if (!isset($listaime)) { header ("Location: ".$PHP_SELF."?action=view"); exit; } if (isset($kng) && !(!isset($kng) || $kng == "N;" || $kng == "out")) { $tmp = unserialize(stripslashes($kng)); foreach($tmp as $kot) { if (!in_array($kot, $listaime)) { $shto[] = $kot; } } } storecook($shto); header ("Location: ".$PHP_SELF."?action=view"); exit; } if ($action == "listenall") { header ("Location: http://www.fajtori.com/mylist.php/r.ram"); exit; } if ($action == "listensel") { if (!isset($listaime)) { header ("Location: ".$PHP_SELF."?action=view"); exit; } $tmpstring = serialize($listaime); setcookie("tmp", $tmpstring, time() + 5184000, "/", ".fajtori.com", 0); header ("Location: http://www.fajtori.com/mylist.php/nofile.ram?listaime=0"); exit; } if ($action == "reverse" && !(!isset($kng) || $kng == "N;" || $kng == "out")) { $tmp = unserialize(stripslashes($kng)); $tmp2 = array_reverse($tmp); storecook($tmp2); header ("Location: ".$PHP_SELF."?action=view"); exit; } if ($action == "view" && (!isset($kng) || $kng == "N;" || $kng == "out")) { openhtml(); top(); listaime(); nolist(); foot(); closehtml(); } if ($action == "deleteall") { setcookie("kng", "out", time() + 5184000, "/", ".fajtori.com", 0); header ("Location: ".$PHP_SELF."?action=view"); } if ($action == "rendit" && !(!isset($kng) || $kng == "N;" || $kng == "out")) { $tmp = unserialize(stripslashes($kng)); if ($alfabet == "rand") { myshuffle($tmp); storecook($tmp); header ("Location: ".$PHP_SELF."?action=view"); exit; } if ($alsong == "al") { if ($alfabet == "asc") { sort($tmp); storecook($tmp); header ("Location: ".$PHP_SELF."?action=view"); exit; } if ($alfabet == "desc") { sort($tmp); array_reverse($tmp); storecook($tmp); header ("Location: ".$PHP_SELF."?action=view"); exit; } } if($alsong == "song") { $i = 0; foreach($tmp as $kot) { list($al,$k,$f) = explode("+", $kot); $lesh[$i] = "$k+$al+$f"; $i++; } sort($lesh); foreach($lesh as $kot) { list($k,$al,$f) = explode("+", $kot); $asong[] = "$al+$k+$f"; } $descend = array_reverse($lesh); foreach($descend as $kot) { list($k,$al,$f) = explode("+", $kot); $dsong[] = "$al+$k+$f"; } if ($alfabet == "asc") { storecook($asong); header ("Location: ".$PHP_SELF."?action=view"); exit; } if ($alfabet == "desc") { storecook($dsong); header ("Location: ".$PHP_SELF."?action=view"); exit; } } } } ?>