Success
Success
back
"; } elseif(isset($_GET["lo"])) { session_destroy(); echo "You have been sign out
Click Here To Continue"; } elseif(isset($_GET["blog"])) { if(!is_numeric($_GET["blog"])) die("Error : Invalid char detected"); blog($_POST, $_GET["blog"], $ur); } elseif(isset($_GET["cat"])) { if(!is_numeric($_GET["cat"])) die("Error : Invalid char detected"); echo "{$ur["name"]} blog"; $show=$ur["blogperpage"]; $p = $_GET['p']; $count=mysql_query("select count(*) from blog where cat_id='{$_GET["cat"]}'") or die(mysql_error()); $total=mysql_fetch_row($count); if($total[0]=="0") die("Zero Result"); $pg=ceil($total[0]/$show); if($p>$pg && $p!=1) $p=$pg; if($p<1) $p=1; $j = ($p-1) * $show; $a=mysql_query("select id, title, text, cat_id, date_format(time, '%d/%m %y') as 'time',time as 'timeorder', hit,hittoday, user_id from blog where cat_id='{$_GET["cat"]}' order by timeorder desc limit $j, $show") or die(mysql_error()); while($b=mysql_fetch_array($a)) { $cat=catname($b["cat_id"]); $user=username($b["user_id"]); $b["text"]=substr($b["text"], 0, $ur["idx_textperblog"]); echo "
{$b["title"]}"; echo "
{$b["time"]} | $cat | $user
{$b["text"]}...Read More
"; if($ur["idx_hitonoff"]=="1") { echo " [Views : {$b["hittoday"]}/".($b["hittoday"]+$b["hit"])."]"; } if($ur["idx_komenonoff"]=="1") { echo " [Comment : ".countcomment($b["id"])."/".jmlkomen($b["id"])."]"; } if(isset($_SESSION["user"])) { $check=strpos($b["title"], "[!!]"); if($check!==false) { echo "
Del Notify"; } } echo "
"; } $sc=$ur["linkperpage"]; $st=floor($p/$sc)*$sc; $en=$st+$sc; $g=$st; echo "
"; if($g<"2") print(""); else if($g>"0") print("[<] "); else print(" "); for($g;($g<$en);$g++) { if($g==$p) { print(" [".$g."] "); } elseif($g<=$pg) { if($g>"0") print("".$g." "); } else { print(" "); } } if($g<=$pg) print("[>]"); else print(""); echo "


"; search($ur); listcat(); lastcomment($ur); mosthit($ur); mosthitall($ur); } elseif(isset($_GET["s"])) { $_POST["search"]=mysql_real_escape_string(trim($_POST["search"])); search_result($_POST["search"], $ur); } else { echo "{$ur["name"]} blog"; $show=$ur["blogperpage"]; $p = $_GET['p']; $count=mysql_query("select count(*) from blog") or die(mysql_error()); $total=mysql_fetch_row($count); $pg=ceil($total[0]/$show); if($p>$pg && $p!=1) $p=$pg; if($p<1) $p=1; $j = ($p-1) * $show; $a=mysql_query("select id, title, text, cat_id, date_format(time, '%d/%m %y') as 'time',time as 'timeorder', hit,hittoday, user_id from blog order by timeorder desc limit $j, $show") or die(mysql_error()); while($b=mysql_fetch_array($a)) { $cat=catname($b["cat_id"]); $user=username($b["user_id"]); $b["text"]=stripslashes($b["text"]); $b["title"]=stripslashes($b["title"]); $b["text"]=substr($b["text"], 0, $ur["idx_textperblog"]); echo "
{$b["title"]}"; echo "
{$b["time"]} | $cat | $user
{$b["text"]}...Read More
"; if($ur["idx_hitonoff"]=="1") { if($ur["idx_hittodayonoff"]=="1") { echo " [Views : {$b["hittoday"]}/".($b["hittoday"]+$b["hit"])."]"; } else { echo " [Views : ".($b["hittoday"]+$b["hit"])." ]"; } } if($ur["idx_komenonoff"]=="1") { if($ur["idx_cmttodayonoff"]=="1") { echo " [Comment : ".countcomment($b["id"])."/".jmlkomen($b["id"])."]"; } else { echo " [Comment : ".jmlkomen($b["id"])."]"; } } if(isset($_SESSION["user"])) { $check=strpos($b["title"], $ur["idx_updatenot"]); if($check!==false) { echo "
Del Notify"; } } echo "
"; } echo "
"; $sc=$ur["linkperpage"];; $st=floor($p/$sc)*$sc; $en=$st+$sc; $g=$st; if($g<"2") print(""); else if($g>"0") print("[<] "); else print(" "); for($g;($g<$en);$g++) { if($g==$p) { print(" [".$g."] "); } elseif($g<=$pg) { if($g>"0") print("".$g." "); } else { print(" "); } } if($g<=$pg) print("[>]"); else print(""); echo "


"; search($ur); listcat(); lastcomment($ur); mosthit($ur); mosthitall($ur); } require("footer.php"); ?>

Pair of Vintage Old School Fru