Are you sure to delete '.blogtitle(bloglink(($_GET['blog']))).'?
Cancel | Yes '; } } elseif(isset($_GET['blog']) && isset($_GET['edit'])) { if(!isset($_SESSION['user'])) { $_SESSION['errorlogin']='You must be logged in to access this page.'; header('location:'.$ur['blog_dir'].'?login&forward='.urlencode($_SERVER['REQUEST_URI'])); die(); } $_GET['blog']=trim($_GET['blog']); form_edit($_GET['blog'], $ur); } elseif(isset($_GET['blog']) && isset($_GET['comment'])) { if(!isset($_SESSION['user'])) { $_SESSION['errorlogin']='You must be logged in to access this page.'; header('location:'.$ur['blog_dir'].'?login&forward='.urlencode($_SERVER['REQUEST_URI'])); die(); } $_GET['blog']=trim($_GET['blog']); $_GET['comment']=trim($_GET['comment']); if($_GET['comment']=='enable') { mysql_query("update blog set blogcmtonoff='1' where id='{$_GET['blog']}'") or die(mysql_error()); $_SESSION['statusmsg']='Post comment was successfully enabled.'; header('Location:'.$ur['blog_dir'].blogpermalink($_GET['blog'])); die(); } if($_GET['comment']=='disable') { mysql_query("update blog set blogcmtonoff='0' where id='{$_GET['blog']}'") or die(mysql_error()); $_SESSION['statusmsg']='Post comment was successfully disabled.'; header('Location:'.$ur['blog_dir'].blogpermalink($_GET['blog'])); die(); } } elseif(isset($_GET['login'])) { if(isset($_POST['username']) && isset($_POST['password'])) { $_POST['username']=trim(addslashes($_POST['username'])); $_POST['password']=trim(addslashes($_POST['password'])); setcookie("login", stripslashes($_POST['username']), time()+604800); $g=mysql_query("select password from user where name='{$_POST['username']}' and password='{$_POST['password']}' and id='1'") or die("!".mysql_error()); if(mysql_num_rows($g)!=0) { $_SESSION['user']=$_POST['username']; if(empty($_POST['forward'])) $_POST['forward']=$ur['blog_dir']; header('Location:'.$_POST['forward']); die(); } else { $_SESSION['loginerror']='Username and password do not match.'; if(!empty($_POST['forward'])) $_POST['forward']='&forward='.$_POST['forward']; header('Location:?login'.$_POST['forward']); die(); } } else { echo ' Administrator Login
Lamborghini Huracán LP 610-4 t
Administrator Login
'; if(isset($_SESSION['loginerror'])) { echo 'Error: '.$_SESSION['loginerror'].''; unset($_SESSION['loginerror']); } echo '
Username:
Password:
'.$ur['powered'].'
'; die(); } } elseif(isset($_GET['delnot'])) { if(!isset($_SESSION['user'])) { $_SESSION['errorlogin']='You must be logged in to access this page.'; header('location:'.$ur['blog_dir'].'?login&forward='.urlencode($_SERVER['REQUEST_URI'])); die(); } $hut=mysql_query("select title from blog where id='{$_GET['delnot']}'") or die(mysql_error()); $show=mysql_fetch_row($hut); $showl=str_replace($ur['idx_updatenot'], "", $show[0]); mysql_query("update blog set title='$showl' where id='{$_GET['delnot']}'") or die(mysql_error()); header('Location:'.$_SERVER['HTTP_REFERER']); die(); } elseif(isset($_GET['logout'])) { session_destroy(); header('Location:'.$_SERVER['HTTP_REFERER']); die(); } elseif(isset($_GET['blog'])) { header('Location:'.$ur['blog_dir'].blogpermalink($_GET['blog'])); die(); } elseif(isset($_GET['cat'])) { header('Location:'.$ur['blog_dir'].catpermalink($_GET['cat'])); die(); } elseif(isset($_GET['post']) && isset($_GET['category'])) { post($_POST,$id,$ur,$_GET['post'],$_GET['category']); } elseif(isset($_GET['category'])) { $p=$_GET['p']; if($p > 1) $hal="Page #$p "; $ur['title']=catname(catlinkid($_GET['category'])).' Category '.$hal.'| '.$ur['blog_name']; $ur['meta_robots']="all,index,follow"; pageheader($ur); $show=$ur['blogperpage']; $cid=catlinkid($_GET['category']); $count=mysql_query("select count(*) from blog where cat_id='$cid'") or die(mysql_error()); $total=mysql_fetch_row($count); if($total[0]=="0") { echo '

Zero Result

No blog posted under this category.
Home
'; } else { $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, bloglink, text, cat_id, date_format(time, '%d %b %Y') as 'time', date_format(uptime, '%d %b %Y') as 'uptime', uptime as 'timeorder', hit,hittoday, user_id from blog where cat_id='$cid' order by timeorder desc limit $j, $show") or die(mysql_error()); while($b=mysql_fetch_array($a)) { bloglist($ur,$b); } $sc=$ur['linkperpage']; $st=floor($p/$sc)*$sc; $en=$st+$sc; $g=$st; echo '
'; if($g<"2") print(""); else if($g>"0"){if($g-1 > "1") {$page="/".($g-1);} print("[«] ");} else print(" "); for($g;($g<$en);$g++) { if($g=="1" && $g!=$p) { print("$g "); } elseif($g=="1" && $g==$p) { print("[".$g."] "); } elseif($g==$p) { print(" [".$g."] "); } elseif($g<=$pg) { if($g>"1") print("".$g." "); } else { print(" "); } } if($g<=$pg) print("[»]"); else print(""); echo '
'; quicknav($ur); } } elseif(isset($_GET['search'])) { search_result($_GET['search'],$ur); } elseif(isset($_GET['recentcomment'])) { $ur['title']="Recent Comments | ".$ur['blog_name']; $ur['meta_robots']="noindex,nofollow"; pageheader($ur); echo '

Recent Comments

'; $ri=mysql_query("select id, name, message, date_format(time, '%d %b %Y %H:%i') as 'time', blog_id, url, ip, browser from comment order by id desc limit 15"); while($dho=mysql_fetch_array($ri)) { commentlist($ur,$dho); } echo 'Home
'; } elseif(isset($_GET['sitemap'])) { $ur['title']="Sitemap | ".$ur['blog_name']; $ur['meta_robots']="all,index,follow"; pageheader($ur); echo '

Sitemap

'; $huteri=mysql_query("select * from kategori order by catlink") or die(mysql_error()); $huterim=mysql_query("select count(id) from blog") or die(mysql_error()); $c=mysql_fetch_row($huterim); while($manza=mysql_fetch_row($huteri)) { echo ''.$manza[1].' Category ['.jmlpercat($manza[0]).' Posts]
    '; $cid=catlinkid($manza[2]); $a=mysql_query("select id, title, bloglink, text, cat_id, date_format(time, '%d %b %y') as 'time', date_format(uptime, '%d %b %Y') as 'uptime', uptime as 'timeorder', hit, hittoday, user_id from blog where cat_id='$cid' order by timeorder desc") or die(mysql_error()); while($b=mysql_fetch_array($a)) { echo '
  • '.$b['title'].'
  • '; } echo '
'; } echo '
'; } elseif(isset($_GET['whos'])) { $ur['title']="Who is Online | ".$ur['blog_name']; $ur['meta_robots']="noindex,nofollow"; pageheader($ur); echo '

Who is Online

'; $arr=mysql_query("select * from user_online order by user_ip") or die(mysql_error()); while($ero=mysql_fetch_array($arr)) { $location=$ero['user_location']; $ero['user_browser']=strip_tags($ero['user_browser']); if($ero['user_location']=="/") $ero['user_location']="Home"; echo '
'.$ero['user_ip'].'
'.$ero['user_browser'].'
on '.$ero['user_location'].'
'; } echo '
'; } elseif(isset($_GET['about'])) { $ur['title']="About | ".$ur['blog_name']; $ur['meta_robots']="all,index,follow"; pageheader($ur); echo '

About

'.bbcodes(smiley($ur,$ur['about'])); if(isset($_SESSION['user'])) echo '
[Edit]'; echo '
'; } elseif(isset($_GET['smiley'])) { $ur['title']="Smiley List | ".$ur['blog_name']; $ur['meta_robots']="noindex,nofollow"; pageheader($ur); echo '

Smiley List

'; $emo=array(":@","8-)",":p","B-)",":'(","^o)",":s",":)",":*",":x","8-|",":(",":o",":$",":#","|-)",":-|",":D",";)","(dies)","%)","(err)",":~","%)","&)",":-=",":\\",":{",":}","(dog)","(callme)","(headphones)","(love)","(hug)","(beautiful)","(bum)","(devil)","(poo)","(reaper)","(scream)","(vamp)","(vomit)","(kiss)","(confused)","(drool)","(holdinghands)","(buzz)","(kick)","(ok)","(punch)","(thumbsup)","(thumbsdown)"); echo ''; for($i=0; $i<52; $i++) { echo ' '; } echo '
'.smiley($ur,$emo[$i]).'  » '.$emo[$i].'
'; } elseif(isset($_GET['bbcode'])) { $ur['title']="BB Code List | ".$ur['blog_name']; $ur['meta_robots']="noindex,nofollow"; pageheader($ur); echo '

BB Code List

Bold [b]'.bbcodes("[b]Bold Text[/b]").'[/b]
Italic [i]'.bbcodes("[i]Italic Text[/i]").'[/i]
Underlined [u]'.bbcodes("[u]Underlined Text[/u]").'[/u]
Blink [blink]'.bbcodes("[blink]Blinked Text[/blink]").'[/blink]
Striketrough [s]'.bbcodes("[s]Striketrough Text[/s]").'[/s]
Center
[center]Center Aligned Text[/center]
Color [color=green]'.bbcodes("[color=green]Color Text[/color]").'[/color]
[color=red]'.bbcodes("[color=red]Color Text[/color]").'[/color]
[color=#3399FF]'.bbcodes("[color=#3399FF]Color Text[/color]").'[/color]
or
[red]'.bbcodes("[red]Color Text[/red]").'[/red]
[yellow]'.bbcodes("[yellow]Color Text[/yellow]").'[/yellow]
[blue]'.bbcodes("[blue]Color Text[/blue]").'[/blue]
URL [url=http://www.errorisme.com]Errorisme Blog[/url]
'.bbcodes("[url=http://www.errorisme.com]Errorisme Blog[/url]").'
IMG [img]http://www.errorisme.com/images/errorisme-backlink.png[/img]
'.bbcodes("[img]http://www.errorisme.com/images/errorisme-backlink.png[/img]").'
Line Break [br] or [br/]
Quote [quote]Quoted Text[/quote]
'.bbcodes("[quote]Quoted Text[/quote]").'
[quote=errorisme]Quoted Text[/quote]
'.bbcodes("[quote=errorisme]Quoted Text[/quote]").'
Textarea
Admin Only
[textarea]<!--Text Area Content-->[/textarea]
'.bbcodes("[textarea][/textarea]").'
Code
Admin Only
[code]<a href="http://www.errorisme.com">Errorisme Corp.</a>[/code]
'.bbcodes("[code]Errorisme Corp.[/code]").'
'; } else { $p=$_GET['p']; if($p > 1) {$hal="Page #$p | ";} $ur['title']=$hal.$ur['blog_name']; $ur['meta_robots']="all,index,follow"; pageheader($ur); echo $ur['announcement']; $show=$ur['blogperpage']; $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; if(!$ur['mobile'] && !$_GET['p']) { $j=$j + 1; $show=$show-1; $one=mysql_query("select id, title, bloglink, text, date_format(time, '%d %b %Y %H:%i') as 'time', date_format(uptime, '%d %b %Y') as 'uptime', uptime as 'timeorder', time as 'timecek', uptime as 'uptimecek', cat_id, hit, hittoday, user_id, blogcmtonoff from blog order by timeorder desc limit 0, 1") or die(mysql_error()); $manza=mysql_fetch_array($one); $cat=catname($manza['cat_id']); $manza['text']=str_replace("[more]","",$manza['text']); if($ur['bbcodeonoff']=="1")$manza['text']=bbcodes($manza['text']); if($ur['smileyonoff']=="1") $manza['text']=smiley($ur,$manza['text']); echo '
'.$manza['title'].' '; if(isset($_SESSION['user'])) { echo ' [Edit]'; $check=strpos($manza['title'], $ur['idx_updatenot']); if($check!==false) echo ' | [Del Notify]'; } echo '
'.$manza['uptime'].' under '.$cat.' by '.username($manza['user_id']).'
'.stripslashes(nl2br($manza['text'])).'
'; } $a=mysql_query("select id, bloglink, title, text, cat_id, date_format(time, '%d %b %Y') as 'time', date_format(uptime, '%d %b %Y') as 'uptime', uptime 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)) { bloglist($ur,$b); } /***start of paging***/ echo '
'; $sc=$ur['linkperpage'];; $st=floor($p/$sc)*$sc; $en=$st+$sc; $g=$st; if($g<"2") print(""); else if($g>"0") {if($g-1 > "1") $page='page/'.($g-1).'/'; print('[«] ');} else print(" "); for($g;($g<$en);$g++) { if($g=="1" && $g!=$p) print(''.$g.' '); elseif($g=="1" && $g==$p) print(' ['.$g.'] '); elseif($g==$p) print(' ['.$g.'] '); elseif($g<=$pg) { if($g>"1") print(''.$g.' '); } else print(" "); } if($g<=$pg) print('[»]'); echo '
'; /***end of paging***/ quicknav($ur); } require("footer.php"); ?>