", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } $contact='
عنوان :
ايميل :
متن پيام :
'; $qu10=mysql_query("select * from nimcat_buser where username='$_GET[user]' and weblog='$id'"); $y4=mysql_fetch_array($qu10); $date=explode("|",$y4['tsabt']); $week = Array ("يکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"); $months = Array ("فروردين", "ارديبهشت", "خرداد", "تير", "مرداد", "شهريور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند"); $day=$date['3'];$mon=$date['1']; $date = $week[($day-1)]." ".$date['2']." ".$months[($mon-1)]." ".$date['0']; $dat=explode("|",$y4['vdate']); $wee = Array ("يکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"); $month = Array ("فروردين", "ارديبهشت", "خرداد", "تير", "مرداد", "شهريور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند"); $da=$dat['3'];$mo=$dat['1']; $dat = $wee[($da-1)]." ".$dat['2']." ".$month[($mo-1)]." ".$dat['0']; if($y4[man] == '2'){$man='مرد';} elseif($y4[man] == '1') {$man='زن';} else {$man='عدم نمايش جنسيت ';} if($y4[taahol] == '1'){$man1='مجرد';} elseif($y4[taahol] == '2') {$man1='متاهل';} else {$man1='عدم نمايش وضعيت تاهل';} $userform='
'.$y4[username].'
نام : '.$y4[ptitle].'
سن : '.$y4[sen].'
جنسیت : '.$man.'
وضعیت تاهل : '.$man1.'
تاریخ ثبت نام : '.$date.'
اخرین ورود : '.$dat.' - در ساعت '.$y4[vtime].'
ادرس سایت : '.$y4[site].'
شناسه یاهو : '.$y4[yahoo].'

'; $panel='

ارسال مطلب جدید

راهنماي سيستم

مديريت  پیام ها

اضافه كردن لينك

ارسال پيام به اعضا

ويرايش مشخصات

تغیر رمز عبور

تنظیمات پروفايل

'; if($_GET['y']== 'contact'){ // INPUT BLOCk UP THEMPLATE $template = str_replace("<-Contact->", "$contact", $template); } else { $template = str_replace("<-Contact->", "", $template); } // INPUT khali THEMPLATE $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-BloText->", "$link[ptext]", $insert); $insert = str_replace("<-BloTitle->", "$link[ptitle]", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} if($qub['ads1'] == ""){ $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links;} $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template);} if($qub['ads2'] == ""){ $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links;} $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template);} if($qub['ads3'] == ""){ $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links;} $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template);} if(!$p){ $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links;} $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template);} if($qub['ads4'] == ""){ $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links;} $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template);} // Contact // if($_GET['y'] !== 'contact'){ $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } // user// if(!$user){ $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='888888888888888111188888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } if(!$_GET['y']){ $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } if($_GET['y'] == 'posts'){ $template = str_replace("<-OtherTitle->", "تمامي مطالب سايت", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_posts3 WHERE weblog='$id' order by id desc limit 50"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "تمامي مطالب سايت", $insert); $insert = str_replace("<-OtherPage->", "
  •   $link[ptitle]
  • ", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else if($_GET['y'] == 'panel'){ $template = str_replace("<-OtherTitle->", "پنل كاربران", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id' order by id desc limit 1"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "پنل كاربران", $insert); if(isset($_SESSION['usernames'])){ $insert = str_replace("<-OtherPage->", "$panel", $insert);} else { $insert = str_replace("<-OtherPage->", "براي مشاهده ي اين بخش بايد وارد سيستم شويد
    $log", $insert);} } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else if($_GET['y'] == 'poll'){ $template = str_replace("<-OtherTitle->", "پنل كاربران", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id' order by id desc limit 1"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "نتایج نظرسنجی", $insert); //if(isset($_SESSION['usernames'])){ $insert = str_replace("<-OtherPage->", "$poll", $insert); //} else { //$insert = str_replace("<-OtherPage->", "براي مشاهده ي اين بخش بايد وارد سيستم شويد
    $log", $insert);} } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else if($_GET['y'] == 'com'){ $template = str_replace("<-OtherTitle->", "مشاهده ي پيامها", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id' order by id desc limit 1"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; if(isset($_SESSION['usernames'])){ $insert = str_replace("<-OtherPage->", "$menu
    $com1", $insert);} else { $insert = str_replace("<-OtherPage->", "براي مشاهده ي اين بخش بايد وارد سيستم شويد
    $log", $insert);} } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else if($_GET['y'] == 'login'){ $template = str_replace("<-OtherTitle->", "ورود به سيستم", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id' order by id desc limit 1"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "ورود به سييستم", $insert); $insert = str_replace("<-OtherPage->", "براي ورود به سيستم و استفاده از امكانات سايت مي توانيد از فرم زير استفاده نماييد
    $log", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else if($_GET['y'] == 'out'){ $template = str_replace("<-OtherTitle->", "خروج از سيستم", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id' order by id desc limit 1"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "خروج از سيستم", $insert); $insert = str_replace("<-OtherPage->", "$out", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else if($_GET['y'] == 'link'){ $template = str_replace("<-OtherTitle->", "ارسال لينك جديد", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id' limit1"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "ارسال لينك جديد", $insert); if(isset($_SESSION['usernames'])){ $insert = str_replace("<-OtherPage->", "$menu
    $sendlink", $insert);} else { $insert = str_replace("<-OtherPage->", "براي مشاهده ي اين بخش بايد وارد سيستم شويد
    $log", $insert);} } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else if($_GET['y'] == 'post'){ $template = str_replace("<-OtherTitle->", "ارسال مطلب جديد", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='hamed'"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "ارسال مطلب جديد", $insert); if(isset($_SESSION['usernames'])){ $insert = str_replace("<-OtherPage->", "$menu
    $post", $insert);} else { $insert = str_replace("<-OtherPage->", "براي مشاهده ي اين بخش بايد وارد سيستم شويد
    $log", $insert);} } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); } else if($_GET['y'] == 'mo'){ $template = str_replace("<-OtherTitle->", "ويرايش مشخصات", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id'"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "ويرايش مشخصات", $insert); if(isset($_SESSION['usernames'])){ $insert = str_replace("<-OtherPage->", "$menu
    $mosh", $insert);} else { $insert = str_replace("<-OtherPage->", "براي مشاهده ي اين بخش بايد وارد سيستم شويد
    $log", $insert);} } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else if($_GET['y'] == 'mcom'){ $template = str_replace("<-OtherTitle->", "مشاهده ي پيام", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id' order by id desc limit 1"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "مشاهده ي پيام", $insert); if(isset($_SESSION['usernames'])){ $insert = str_replace("<-OtherPage->", "$menu
    $mcom", $insert);} else { $insert = str_replace("<-OtherPage->", "براي مشاهده ي اين بخش بايد وارد سيستم شويد
    $log", $insert);} } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else if($_GET['y'] == 'pass'){ $template = str_replace("<-OtherTitle->", "تغيير رمز ورود", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id'"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "تغيير رمز ورود", $insert); if(isset($_SESSION['usernames'])){ $insert = str_replace("<-OtherPage->", "$menu
    $pass", $insert);} else { $insert = str_replace("<-OtherPage->", "براي مشاهده ي اين بخش بايد وارد سيستم شويد
    $log", $insert);} } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else if($_GET['y'] == 'scom'){ $template = str_replace("<-OtherTitle->", "ارسال پيام به اعضا", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id'"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "ارسال پيام به اعضا", $insert); if(isset($_SESSION['usernames'])){ $insert = str_replace("<-OtherPage->", "$menu
    $scom", $insert);} else { $insert = str_replace("<-OtherPage->", "براي مشاهده ي اين بخش بايد وارد سيستم شويد
    $log", $insert);} } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else if($_GET['y'] == 'dcom'){ $template = str_replace("<-OtherTitle->", "حذف پيام", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id' order by id desc limit 1"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "حذف پيام", $insert); if(isset($_SESSION['usernames'])){ $insert = str_replace("<-OtherPage->", "$menu
    $dcom", $insert);} else { $insert = str_replace("<-OtherPage->", "براي مشاهده ي اين بخش بايد وارد سيستم شويد
    $log", $insert);} } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } else { $template = str_replace("<-OtherTitle->", "تمامي مطالب سايت", $template); $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_posts3 WHERE weblog='01010101010101' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OtherTitle->", "تمامي مطالب سايت", $insert); $insert = str_replace("<-OtherPage->", "
  •   $link[ptitle]
  • ", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } // register// if($_GET['y'] !== 'register'){ $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } // LoginForm// if(isset($_SESSION['usernames'])){ $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } // PM LOGIN// if(!isset($_SESSION['usernames'])){ $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } // LAST user $insert = ""; $cats = between("", "", $template); $allcats = mysql_query("SELECT * FROM nimcat_buser WHERE weblog='$id' order by id desc limit 1"); while(@$cat = mysql_fetch_array($allcats)) { if($cat[ptitle]){ $insert .= $cats; $insert = str_replace("<-UserName->", "$cat[username]", $insert); } } $template = str_replace("".$cats."", $insert, $template); if (@!$insert){$template = str_replace("". $cats."", "", $template);} // INPUT EMAILz $insert = ""; $cats = between("", "", $template); $pitems="
    "; $insert .= $cats; $insert = str_replace("<-MailForm->", "$pitems", $insert); $template = str_replace("".$cats."", $insert, $template); $catsblock = between("", "", $template); if (@!$insert){$template = str_replace("". $catsblock."", "", $template);} // LAST shift POST // $insert = ""; $cats = between("", "", $template); $allcats = mysql_query("SELECT * FROM nimcat_posts3 WHERE weblog='$id' AND status='1' order by RAND() limit $lpnum"); while(@$cat = mysql_fetch_array($allcats)) { $cat1 = mysql_fetch_array(mysql_query("select * from nimcat_posts where id='$cat[id]'")); if($cat[ptitle]){ $insert .= $cats; $insert = str_replace("<-PostTitle->", "$cat[ptitle]", $insert); $insert = str_replace("<-PostLink->", "/Post/$cat1[bid]", $insert); $insert = str_replace("<-PostLink1->", "/Post/$cat1[bid]", $insert); $insert = str_replace("<-PostHits->", "$cat[phits]", $insert); $date=explode("|",$cat['pdate']); $week = Array ("يکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"); $months = Array ("فروردين", "ارديبهشت", "خرداد", "تير", "مرداد", "شهريور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند"); $day=$date['3'];$mon=$date['1']; $date = $week[($day-1)]." ".$date['2']." ".$months[($mon-1)]." ".$date['0']; $insert = str_replace("<-PostDate->", "$date", $insert);}} $template = str_replace("".$cats."", $insert, $template); if (@!$insert){$template = str_replace("". $cats."", "", $template);} // LAST shift POST // if($p){ $insert = ""; $cats = between("", "", $template); $allcats = mysql_query("SELECT * FROM nimcat_bcomments where weblog='$id' and status='1' and pid='$p' order by id desc limit 10"); while(@$cat = mysql_fetch_array($allcats)) { if($cat[ctitle]){ $insert .= $cats; $insert = str_replace("<-CommentName->", "$cat[ctitle]", $insert); $insert = str_replace("<-CommentMail->", "$cat[cmail]", $insert); $insert = str_replace("<-CommentWeb->", "$cat[cweb]", $insert); $insert = str_replace("<-CommentText->", "$cat[ctext]", $insert); $insert = str_replace("<-CommentTime->", "$cat[ctime]", $insert); $date=explode("|",$cat['cdate']); $week = Array ("يکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"); $months = Array ("فروردين", "ارديبهشت", "خرداد", "تير", "مرداد", "شهريور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند"); $day=$date['3'];$mon=$date['1']; $date = $week[($day-1)]." ".$date['2']." ".$months[($mon-1)]." ".$date['0']; $insert = str_replace("<-CommentDate->", "$date", $insert); } } $template = str_replace("".$cats."", $insert, $template); if (@!$insert){$template = str_replace("". $cats."", "", $template);} } else { $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_blo1 WHERE weblog='88888888888888888888888' order by id desc limit $lpnum"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} } // LAST BAZDID POST $insert = ""; $cats = between("", "", $template); $allcats = mysql_query("SELECT * FROM nimcat_posts3 WHERE weblog='$id' AND status='1' order by phits desc limit $lpnum"); while(@$cat = mysql_fetch_array($allcats)) { $cat1 = mysql_fetch_array(mysql_query("select * from nimcat_posts where id='$cat[id]'")); if($cat[ptitle]){ $insert .= $cats; $insert = str_replace("<-PostTitle->", "$cat[ptitle]", $insert); $insert = str_replace("<-PostLink->", "/Post/$cat1[bid]", $insert); $insert = str_replace("<-PostLink1->", "/Post/$cat1[bid]", $insert); $insert = str_replace("<-PostHits->", "$cat[phits]", $insert); $date=explode("|",$cat['pdate']); $week = Array ("يکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"); $months = Array ("فروردين", "ارديبهشت", "خرداد", "تير", "مرداد", "شهريور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند"); $day=$date['3'];$mon=$date['1']; $date = $week[($day-1)]." ".$date['2']." ".$months[($mon-1)]." ".$date['0']; $insert = str_replace("<-PostDate->", "$date", $insert);}} $template = str_replace("".$cats."", $insert, $template); if (@!$insert){$template = str_replace("". $cats."", "", $template);} // LAST user $insert = ""; $cats = between("", "", $template); $allcats = mysql_query("SELECT * FROM nimcat_buser WHERE weblog='$id' order by id desc limit 10"); while(@$cat = mysql_fetch_array($allcats)) { $insert .= $cats; $insert = str_replace("<-UserName->", "$cat[username]", $insert); $insert = str_replace("<-UserLink->", "/User/$cat[username]", $insert); } $template = str_replace("".$cats."", $insert, $template); if (@!$insert){$template = str_replace("". $cats."", "", $template);} // INPUT LINKS $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_links WHERE weblog='$id' and status='1' order by id desc"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-LinkDescription->", "$link[ldesc]", $insert); $insert = str_replace("<-LinkUrl->", "/?mod=link&id=$link[id]", $insert); $insert = str_replace("<-LinkTitle->", "$link[ltitle]", $insert); $insert = str_replace("<-LinkClicks->", "$link[lclix]", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} // INPUT LINKS $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_dlinks WHERE weblog='$id' and status='1' order by id desc"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-LinkDescription->", "$link[ldesc]", $insert); $insert = str_replace("<-LinkUrl->", "/?mod=dlink&id=$link[id]", $insert); $insert = str_replace("<-LinkTitle->", "$link[ltitle]", $insert); $insert = str_replace("<-LinkClicks->", "$link[lclix]", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} // INPUT [-Post_Title-] , [-Post_Link-],[-Post_Content-],[-Post_More_Content-] , [-Post_Date-] , [-Post_Time-] , [-Post_Author-] , [-Post_Source-] , [-Post_Comment-] , [-Post_Comment_Link-] , [-Post_Comment_Count-] $BlogEntires= occurrencecount("", "", $template, "0"); for($f=0;$f<$BlogEntires;$f++) { $insert = ""; $Entires = between("", "", $template); $result = mysql_query("SELECT * FROM nimcat_cats WHERE weblog = '$id' and status='1'"); while($r=mysql_fetch_array($result)){ $insert .= $Entires; $insert = str_replace("<-CatTitle->", "$r[ctitle]", $insert); $BlogPostTag= occurrencecount("", "", $template, "0"); for($f=0;$f<$BlogPostTag;$f++) { $insert3 = ""; $PostTag1= between("", "", $template); $result11 = mysql_query("SELECT * FROM nimcat_cats WHERE weblog='$id' and status='$r[id]'"); while($a=mysql_fetch_array($result11)){ $insert3 .= $PostTag1; $PostTag= occurrencecount("", "", $template, "0"); for($f=0;$f<$PostTag;$f++) { $insert3 = str_replace("<-Cnam->", "$a[ctitle]", $insert3); $insert3 = str_replace("<-Clink->", "/Cat/$a[bid]", $insert3); $insert2 = ""; $Tag= between("", "", $template); $result10 = mysql_query("SELECT * FROM nimcat_talar WHERE weblog='$id' and tcat='$r[id]'"); while($b=mysql_fetch_array($result10)){ $insert2 .= $Tag; $insert2 = str_replace("[-Post_Keyword_Link-]", "/Tag/$b[Tag]", $insert2); } $insert3 = str_replace("".$Tag."", $insert2, $insert3); } } $insert = str_replace("".$PostTag1."", $insert3, $insert); } $BlogPostCategory= occurrencecount("", "", $template, "0"); for($f=0;$f<$BlogPostCategory;$f++) { $insert3 = ""; $PostCategory1= between("", "", $template); $result11 = mysql_query("SELECT * FROM Categorypost WHERE weblog = '$weblog' and p_id='$r[e_id]' GROUP BY p_id"); while($c=mysql_fetch_array($result11)){ $insert3 .= $PostCategory1; $PostCategory= occurrencecount("", "", $template, "0"); for($f=0;$f<$PostCategory;$f++) { $insert2 = ""; $Category= between("", "", $template); $result10 = mysql_query("SELECT * FROM Categorypost WHERE weblog = '$weblog' and p_id='$r[e_id]'"); while($d=mysql_fetch_array($result10)){ $insert2 .= $Category; $insert2 = str_replace("[-Post_Category-]", "$d[category]", $insert2); $insert2 = str_replace("[-Post_Category_Link-]", "/Category/$d[catid]-$d[category]", $insert2); } $insert3 = str_replace("".$Category."", $insert2, $insert3); } } $insert = str_replace("".$PostCategory1."", $insert3, $insert); } $result1 = mysql_query("SELECT count(*) FROM comment where weblog = '$weblog' and t_id='$r[e_id]' and how = '1' and type = 'public'"); $row=mysql_fetch_row($result1); $result100 = mysql_query("SELECT * FROM nimcat_talar WHERE weblog = '$id' and tcat='$r[id]'"); while($kh=mysql_fetch_array($result100)) if($r['commenting']=="2"){ $insert = str_replace("[-Post_Comment-]", "", $insert); $insert = str_replace("[-Post_Comment_Link-]", "", $insert); $insert = str_replace("[-Post_Comment_Count-]", "", $insert); } else { $insert = str_replace("", "$kh[ptitle]", $insert); $insert = str_replace("[-Post_Comment_Link-]", "javascript:newComment($r[e_id])", $insert); $insert = str_replace("[-Post_Comment_Count-]", "$row[0]", $insert); } // post date and time $dates = strtotime($r['date']); if($cmbPostDateFormat=="1"){ $postdate = jgmdate('l d F Y',$dates); $insert = str_replace("[-Post_Date-]", "$postdate", $insert); } elseif($cmbPostDateFormat=="2"){ $postdate = jgmdate('l d/m/Y',$dates); $insert = str_replace("[-Post_Date-]", "$postdate", $insert); } elseif($cmbPostDateFormat=="3"){ $postdate = jgmdate('d/m/Y',$dates); $insert = str_replace("[-Post_Date-]", "$postdate", $insert); } elseif($cmbPostDateFormat=="4"){ $postdate = date('d/m/Y',$dates); $insert = str_replace("[-Post_Date-]", "$postdate", $insert); } elseif($cmbPostDateFormat=="5"){ $postdate = date('D d F Y',$dates); $insert = str_replace("[-Post_Date-]", "$postdate", $insert); } elseif($cmbPostDateFormat=="6"){ $postdate = date('d F Y',$dates); $insert = str_replace("[-Post_Date-]", "$postdate", $insert); } elseif($cmbPostDateFormat=="0"){ $insert = str_replace("[-Post_Date-]", "عدم نمايش", $insert); } if($cmbPostTimeFormat=="1"){ $posttime=jgmdate('H:i',$dates); $insert = str_replace("[-Post_Time-]", "$posttime", $insert); } elseif($cmbPostTimeFormat=="2"){ $posttime=jgmdate('g:i a',$dates); $insert = str_replace("[-Post_Time-]", "$posttime", $insert); } elseif($cmbPostTimeFormat=="3"){ $posttime="".jgmdate('g:i',$dates)." ".date('a',$dates); $insert = str_replace("[-Post_Time-]", "$posttime", $insert); } elseif($cmbPostTimeFormat=="4"){ $posttime=jgmdate('H',$dates); $insert = str_replace("[-Post_Time-]", "$posttime", $insert); } elseif($cmbPostTimeFormat=="5"){ $posttime=jgmdate('g a',$dates); $insert = str_replace("[-Post_Time-]", "$posttime", $insert); } elseif($cmbPostTimeFormat=="6"){ $posttime="".jgmdate('g',$dates)." ".date('a',$dates); $insert = str_replace("[-Post_Time-]", "$posttime", $insert); } elseif($cmbPostTimeFormat=="0"){ $insert = str_replace("[-Post_Time-]", "عدم نمايش", $insert); } // finish date and time // more content if($r['member']== "ON"){ if(isset($_SESSION['usernames'])){ if($r['Password']==""){ if($r['ContinuedPostContent']==""){ $insert = str_replace("[-Post_More_Content-]", "", $insert); } else { $insert = str_replace("[-Post_More_Content-]", "$r[textmore]", $insert); } } else { $insert = str_replace("[-Post_More_Content-]", "
    ", $insert); } } else { if($r['ContinuedPostContent']==""){ $insert = str_replace("[-Post_More_Content-]", "", $insert); } else { $insert = str_replace("[-Post_More_Content-]", "$r[signuptext]", $insert); } } } else { if($r['Password']==""){ if($r['ContinuedPostContent']==""){ $insert = str_replace("[-Post_More_Content-]", "", $insert); } else { $insert = str_replace("[-Post_More_Content-]", "$r[textmore]", $insert); } } else { $insert = str_replace("[-Post_More_Content-]", "
    ", $insert); } } //finsh } $template = str_replace("".$Entires."", $insert, $template); } //FINISH // INPUT ABOUT $insert1 = ""; $aboutblock = between("", "", $template); $bphoto = between("", "", $template); $blogabout = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id'"); $about = mysql_fetch_array($blogabout); if (@$about['mypic']){ $insert1 .= $bphoto; $insert1 = str_replace("<-BlogPhotoLink->", "http://".$qcb['surl']."/".$about[mypic], $insert1); $template = str_replace("".$bphoto."", $insert1, $template); $aboutblock = str_replace("".$bphoto."", $insert1, $aboutblock); }else{ $insert1 = str_replace("<-BlogPhotoLink->", "", $insert1); $template = str_replace("".$bphoto."", $insert1, $template); $aboutblock = str_replace("".$bphoto."", $insert1, $aboutblock); } $insert2 = ""; if (@$about['aboutme']){ $insert2 .= $aboutblock; $insert2 = str_replace("<-BlogAbout->", "$about[aboutme]", $insert2); $template = str_replace("". $aboutblock."", $insert2, $template); }else{ $insert2 .= $aboutblock; $insert2 = str_replace("<-BlogAbout->", "", $insert2); $template = str_replace("". $aboutblock."", $insert2, $template); } $aboutblock = between("", "", $template); if (@!$insert1 AND @!$insert2){$template = str_replace("". $aboutblock."", "", $template);} if (@!$insert1){$template = str_replace("". $bphoto."", "", $template);} // INPUT BLOCk RIGHT THEMPLATE $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_subtalar WHERE weblog='$id' order by id desc limit 20"); while(@$link = mysql_fetch_array($allinks)) { $bloguser=(int)mysql_num_rows(mysql_query("select * from nimcat_talarp where weblog='$id' AND pid='$link[bid]'")); $hamed11=mysql_query("select * from nimcat_talarp where weblog='$id' and pid='$link[bid]'"); $tab2=mysql_fetch_array($hamed11); $insert .= $links; $insert = str_replace("<-TalarText->", "$link[ptext]", $insert); $insert = str_replace("<-TalarTitle->", "$link[ptitle]", $insert); $insert = str_replace("<-TalarHit->", "$link[phits]", $insert); $insert = str_replace("<-TalarSub->", "$bloguser", $insert); $insert = str_replace("<-TalarId->", "$link[bid]", $insert); $insert = str_replace("<-Talarwriter->", "$tab2[karbar]", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} // INPUT CATEGORIES $insert = ""; $cats = between("", "", $template); $allcats = mysql_query("SELECT * FROM nimcat_cats WHERE weblog='$id' AND status='1' order by id"); $cccid=0; while(@$cat = mysql_fetch_array($allcats)) { $insert .= $cats; $insert = str_replace("<-CategoryName->", " $cat[ctitle]", $insert); $insert = str_replace("<-CategoryPosts->", "", $insert); $thiscatidz=$cat['id']; $allcatz = mysql_query("SELECT * FROM nimcat_cats WHERE weblog='$id' AND status='$thiscatidz' order by id"); while(@$catzy = mysql_fetch_array($allcatz)) { $insert .= $cats; $insert = str_replace("<-CategoryName->", " $catzy[ctitle]", $insert); $insert = str_replace("<-CategoryLink->", "/Cat/$catzy[bid]", $insert); $insert = str_replace("<-CategoryLink1->", "/Cat/$catzy[bid]", $insert); mysql_connect('localhost','blogbar_no0R','ScE5f3gb67'); $pcatvb=$catzy['id']; $pcatnum=mysql_num_rows(mysql_query("select id from nimcat_posts3 where weblog='$id' AND status='1' AND pcat='$pcatvb'")); $insert = str_replace("<-CategoryPosts->", "($pcatnum)", $insert); }} $template = str_replace("".$cats."", $insert, $template); $catsblock = between("", "", $template); if (@!$insert){$template = str_replace("". $catsblock."", "", $template);} // Archives $insert = ""; $cats = between("", "", $template); $allcats = mysql_query("SELECT * FROM nimcat_posts WHERE weblog='$id' group by pdate"); $cdti=''; while(@$cat = mysql_fetch_array($allcats)) { $week = Array ("يکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"); $months = Array ("فروردين", "ارديبهشت", "خرداد", "تير", "مرداد", "شهريور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند"); $date=explode("|",$cat['pdate']);$day=$date['3'];$mon=$date['1']; if($qub['archivetype']=='3'){ $datei = $week[$day]." ".$date['2']." ".$months[($mon-1)]." ".$date['0']; $clnk=$cat['pdate']; $aposts = mysql_num_rows(mysql_query("SELECT * FROM nimcat_posts WHERE weblog='$id' AND status='1' AND pdate='$clnk'")); }else if($qub['archivetype']=='2'){ $date=explode("|",$cat['pdate']);$mon=$date['1']; $datei = $months[($mon-1)]." ".$date['0']; $clnk = $date['0']."|".$mon; $aposts = mysql_num_rows(mysql_query("SELECT * FROM nimcat_posts WHERE weblog='$id' AND status='1' AND pdate LIKE '$clnk%'")); }else if($qub['archivetype']=='1'){ $datei = $date['0']; $clnk = $date['0']; $aposts = mysql_num_rows(mysql_query("SELECT * FROM nimcat_posts WHERE weblog='$id' AND status='1' AND pdate LIKE '$clnk%'"));} if($datei==$cdti){ }else{ $insert .= $cats; $insert = str_replace("<-ArchiveTitle->", "$datei", $insert); $insert = str_replace("<-ArchivePosts->", "$aposts", $insert); $insert = str_replace("<-ArchiveLink->", "/?ar=$clnk", $insert); $cdti=$datei;}} $template = str_replace("".$cats."", $insert, $template); if (@!$insert){$template = str_replace("". $cats."", "", $template);} // LAST BAZDID POST $insert = ""; $cats = between("", "", $template); $allcats = mysql_query("SELECT * FROM nimcat_posts3 WHERE weblog='$id' AND status='1' order by id desc limit $lpnum"); while(@$cat = mysql_fetch_array($allcats)) { $cat1 = mysql_fetch_array(mysql_query("select * from nimcat_posts where id='$cat[id]'")); if($cat[ptitle]){ $insert .= $cats; $insert = str_replace("<-PostTitle->", "$cat[ptitle]", $insert); $insert = str_replace("<-PostLink->", "/Post/$cat1[bid]", $insert); $insert = str_replace("<-PostLink1->", "/Post/$cat1[bid]", $insert); $insert = str_replace("<-PostHits->", "$cat[phits]", $insert); $date=explode("|",$cat['pdate']); $week = Array ("يکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"); $months = Array ("فروردين", "ارديبهشت", "خرداد", "تير", "مرداد", "شهريور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند"); $day=$date['3'];$mon=$date['1']; $date = $week[($day-1)]." ".$date['2']." ".$months[($mon-1)]." ".$date['0']; $insert = str_replace("<-PostDate->", "$date", $insert);}} $template = str_replace("".$cats."", $insert, $template); if (@!$insert){$template = str_replace("". $cats."", "", $template);} $domain = $_SERVER['SERVER_NAME']; $domain=str_replace("www.","",$domain); $domain=str_replace("http://","",$domain); $domainb=explode("/",$domain); $domain=$domainb[0]; $qdomaina=mysql_fetch_array(mysql_query("select * from nimcat_domains where dmm='$domain'")); if($qdomaina['id']){ $pppp='
    '; } else { $pppp=''; } // LAST user $insert = ""; $cats = between("", "", $template); $allcats = mysql_query("SELECT * FROM nimcat_polls WHERE weblog='$id'"); while(@$cat = mysql_fetch_array($allcats)) { $insert .= $cats; $pitemsa=explode("|",$cat['pitems']); $pitems=' '.$pppp.' '; $oi=0; while($pitemsa[$oi]){ if($cat['op']== '0'){ $op=""; } else { $op=""; } if($cat['op'] == "on"){ $pitems.=""; } else { $pitems.=""; } $oi++;} $pitems.="
    ".$op."
    "; $insert = str_replace("<-PollName->", "$cat[ptitle]", $insert); $insert = str_replace("<-PollItems->", "$pitems", $insert); } $template = str_replace("".$cats."", $insert, $template); if (@!$insert){$template = str_replace("". $cats."", "", $template);} // INPUT AUTHORS $insert = ""; $users = between("", "", $template); $allusers = mysql_query("SELECT * FROM nimcat_users WHERE blog='$id' order by id"); while(@$user = mysql_fetch_array($allusers)) { $insert .= $users; $insert = str_replace("<-AuthorName->", "$user[flname]", $insert); $insert = str_replace("<-AuthorLink->", "/?u=$user[usern]", $insert); $usern=$user['usern'];$iposts=mysql_query("select * from nimcat_posts3 where weblog='$id' AND usern='$usern'");$pcatnum=0;while(@$ipostsb=mysql_fetch_array($iposts)){$pcatnum++;} $insert = str_replace("<-AuthorPosts->", "$pcatnum", $insert); } if (@$insert){ $insert2 = $users; $allusers = mysql_query("SELECT * FROM nimcat_blogs WHERE usern='$id'"); $user = mysql_fetch_array($allusers); $insert2 = str_replace("<-AuthorName->", "$user[flname]", $insert2); $insert2 = str_replace("<-AuthorLink->", "/?u=admin", $insert2); $usern=$user['usern'];$iposts=mysql_query("select * from nimcat_posts3 where weblog='$id' AND usern='$usern'");$pcatnum=0;while(@$ipostsb=mysql_fetch_array($iposts)){$pcatnum++;} $insert2 = str_replace("<-AuthorPosts->", "$pcatnum", $insert2); $insert = $insert2 . $insert; } $template = str_replace("".$users."", $insert, $template); $authorsblock = between("", "", $template); if (@!$insert){$template = str_replace("". $authorsblock ."", "", $template);} // COUNTER $cweblog=$id;include('counter.php'); $blogposts=(int)mysql_num_rows(mysql_query("select * from nimcat_posts3 where weblog='$id' AND status='1' ")); $blogcomms=(int)mysql_num_rows(mysql_query("select * from nimcat_bcomments where weblog='$id'")); $blogcats=(int)mysql_num_rows(mysql_query("select * from nimcat_cats where weblog='$id'")); $bloguser=(int)mysql_num_rows(mysql_query("select * from nimcat_buser where weblog='$id'")); $kh=(int)mysql_num_rows(mysql_query("select * from nimcat_emails where weblog='$id'")); $useronline=(int)mysql_num_rows(mysql_query("select * from nimcat_counter_ips where weblog='$id' and useronline='1'")); $insert = ""; $cats = between("", "", $template); $insert .= $cats; $insert = str_replace("<-Online->", "$online", $insert); $insert = str_replace("<-UserOnline->", "$useronline", $insert); $insert = str_replace("<-Today->", "$day_value", $insert); $insert = str_replace("<-Yesterday->", "$yesterday_value", $insert); $insert = str_replace("<-Week->", "$week_value", $insert); $insert = str_replace("<-Month->", "$month_value", $insert); $insert = str_replace("<-Year->", "$year_value", $insert); $insert = str_replace("<-All->", "$all_value", $insert); $insert = str_replace("<-BlogPosts->", "$blogposts", $insert); $insert = str_replace("<-BlogComments->", "$blogcomms", $insert); $insert = str_replace("<-BlogCat->", "$blogcats", $insert); $insert = str_replace("<-BlogUser->", "$bloguser", $insert); $insert = str_replace("<-Kabarname->", "$kh", $insert); $insert = str_replace("<-Max->", "$record_value", $insert); $insert = str_replace("<-GoogleRankGraphic->", "", $insert); $template = str_replace("".$cats."", $insert, $template); if (@!$insert){$template = str_replace("". $cats."", "", $template);} // INPUT USER ONLINE $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_counter_ips WHERE weblog='$id' and useronline='1' limit 50"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-OnlinUser->", "$link[username]", $insert); $insert = str_replace("<-OnlineLink->", "/User/$link[username]", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} // INPUT RPIC $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_rpic WHERE weblog='$id' order by RAND() limit 1"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-Pic->", "$link[lweb]", $insert); $insert = str_replace("<-Title->", "$link[ltitle]", $insert); $insert = str_replace("<-Desc->", "$link[ldesc]", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} // INPUT NEWS $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_news WHERE weblog='$id' order by id desc limit 10"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-Ntitle->", "$link[ptitle]", $insert); $insert = str_replace("<-Nlink->", "/news/$link[bid]", $insert); $insert = str_replace("<-Ndesc->", "$link[pdesc]", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} // INPUT NEWS $insert = ""; $links = between("", "", $template); $allinks = mysql_query("SELECT * FROM nimcat_pages WHERE weblog='$id' order by id desc limit 10"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-Ptitle->", "$link[ptitle]", $insert); $insert = str_replace("<-Plink->", "/Page/$link[bid]", $insert); $insert = str_replace("<-Pdesc->", "$link[pdesc]", $insert); } $template = str_replace("".$links."", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} // INPUT dl $insert = ""; $links = between("
    ", "
    ", $template); $allinks = mysql_query("SELECT * FROM nimcat_dl WHERE weblog='$id' and status='1' order by id desc"); while(@$link = mysql_fetch_array($allinks)) { $insert .= $links; $insert = str_replace("<-LinkDescription->", "$link[ldesc]", $insert); $insert = str_replace("<-LinkUrl->", "/?mod=dl&id=$link[id]", $insert); $insert = str_replace("<-LinkTitle->", "$link[ltitle]", $insert); $insert = str_replace("<-LinkClicks->", "$link[lclix]", $insert); } $template = str_replace("
    ".$links."
    ", $insert, $template); $linksblock = between("", "", $template); if (@!$insert){$template = str_replace("". $linksblock."", "", $template);} // INPUT PAGES $users = between("", "", $template); if($pat){$pat='/pat'.$catz.'-';$pat0='/cat'.$catz.'';}else{$pat='';$pat0='?pa=0';} $adpp=$ipnum; $pages=''; $itemsnum=(int)mysql_num_rows(mysql_query("select * from nimcat_posts3 where weblog='$id'")); $numbers=($itemsnum/$adpp);if(round($numbers)<$numbers){$numbers=round($numbers)+1;}else{$numbers=round($numbers);} if ($paz>0){ if($numbrs==1){ $pages.= " صفحه قبل "; }else{ $pages.= " صفحه قبل "; } }else{$pages.= " صفحه قبل ";} if($pz>4){$pages.= " 1 ";} if($pz>5){$pages.= " ... ";} if($pz>4){$numbrs=$pz-5;}else{$numbrs=0;} $numbr=0;while ($numbrs<$numbers){ if($pz==$numbrs){ //$pages.= " ".($numbrs+1)." ";$numbrs++; $pages.= " ".($numbrs+1)." ";$numbrs++; }else{ if($numbrs==0){ $pages.= " ".($numbrs+1)." "; }else{ $pages.= " ".($numbrs+1)." "; } $numbrs++;$numbr++; }} if($numbers>$numbrs){$pages.= " ... ".$numbers." ";} if ($itemsnum>$poz){$pages.= " صفحه بعد ";}else{$pages.= " صفحه بعد ";} if (@!$pages OR $b OR $p OR $archivez OR $postz OR $profilez){$template = str_replace("". $users ."", "", $template); }else{ $template = str_replace("". $users ."", $pages, $template); } } ?> 0){ include('blog402.php'); } else {?>