Could not connect: ' . mysql_error()); ?> $height) { $percentage = ($target / $width); } else { $percentage = ($target / $height); } //gets the new value and applies the percentage, then rounds the value $width = round($width * $percentage); $height = round($height * $percentage); //returns the new sizes in html image tag format...this is so you //can plug this function inside an image tag and just get the return "width=\"$width\" height=\"$height\""; } ////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////// function PointedSummary /////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////// function PointedSummary($string) { if (strlen($string) > 50) { $Title1 = $string; $WordCount = str_word_count($Title1); $token = strtok($Title1, ' '); $Title2 = $token.' '; for ($i=1;$i<$WordCount-1;$i++) { $token = strtok(' '); $Title2 .= $token.' '; } $Title2 .= '...'; } else $Title2 = $string; return $Title2; } ////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////// function to_money ////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////// function to_money($string) { $Negative = 0; // Make sure the number is not negative . if(preg_match("/^\-/",$string)) { $Negative = 1; $string = preg_replace("|\-|","",$string); } // Make sure there aren't already commas in the string. $string = preg_replace("|\,|","",$string); $Full = split("[\.]",$string); $Count = count($Full); if($Count > 1) { $First = $Full[0]; $Second = $Full[1]; $NumDec = strlen($Second); if($NumDec == 2) { //do nothing already at correct length } else if($NumDec < 2) { //add an extra zero to the end $Second = $Second . "0"; } else if($NumDec > 2) { // Round off the rest. $Temp = substr($Second,0,3); $Rounded = round($Temp,-1); $Second = substr($Rounded,0,2); } } else { $First = $Full[0]; $Second = "00"; } $length = strlen($First); if( $length <= 3 ) { //To Short to add a comma combine the first part and the second. $string = $First . "." . $Second; return $string; } else { $loop = intval( ( $length / 3 ) ); $section_length = -3; for( $i = 0; $i < $loop; $i++ ) { $sections[$i] = substr( $First, $section_length, 3 ); $section_length = $section_length - 3; } $stub = ( $length % 3 ); if( $stub != 0 ) { $sections[$i] = substr( $First, 0, $stub ); } $Done = implode( ",", array_reverse( $sections ) ); return $Done; } } ////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////// function fdate /////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////// /* usement echo (fdate(j).' '.fdate(M)); echo ('
'); echo ('A '.fdate(A)); echo ('
'); echo ('a '.fdate(a)); echo ('
'); echo ('d '.fdate(d)); echo ('
'); echo ('D '.fdate(D)); echo ('
'); echo ('F '.fdate(F)); echo ('
'); echo ('g '.fdate(g)); echo ('
'); echo ('G '.fdate(G)); echo ('
'); echo ('H '.fdate(H)); echo ('
'); echo ('h '.fdate(h)); echo ('
'); echo ('i '.fdate(i)); echo ('
'); echo ('J '.fdate(j)); echo ('
'); echo ('l '.fdate(l)); echo ('
'); echo ('M '.fdate(M)); echo ('
'); echo ('m '.fdate(m)); echo ('
'); echo ('n '.fdate(n)); echo ('
'); echo ('S '.fdate(S)); echo ('
'); echo ('s '.fdate(s)); echo ('
'); echo ('t '.fdate(t)); echo ('
'); echo ('w '.fdate(w)); echo ('
'); echo ('y '.fdate(y)); echo ('
'); echo ('Y '.fdate(Y)); */ function fdate($type,$maket="now") { $transnumber=0; $TZhours=9; $TZminute=30; if($maket=="now"){ $year=date("Y"); $month=date("m"); $day=date("d"); list( $jyear, $jmonth, $jday ) = gregorian_to_jalali($year, $month, $day); $maket=jmaketime(date("h")+$TZhours,date("i")+$TZminute,date("s"),$jmonth,$jday,$jyear); }else{ $maket+=$TZhours*3600+$TZminute*60; $date=date("Y-m-d",$maket); list( $year, $month, $day ) = preg_split ( '/-/', $date ); list( $jyear, $jmonth, $jday ) = gregorian_to_jalali($year, $month, $day); } $need= $maket; $year=date("Y",$need); $month=date("m",$need); $day=date("d",$need); $i=0; while($i1 && (($gy%4==0 && $gy%100!=0) || ($gy%400==0))) /* leap and after Feb */ $g_day_no++; $g_day_no += $gd; $j_day_no = $g_day_no-79; $j_np = div($j_day_no, 12053); /* 12053 = 365*33 + 32/4 */ $j_day_no = $j_day_no % 12053; $jy = 979+33*$j_np+4*div($j_day_no,1461); /* 1461 = 365*4 + 4/4 */ $j_day_no %= 1461; if ($j_day_no >= 366) { $jy += div($j_day_no-1, 365); $j_day_no = ($j_day_no-1)%365; } for ($i = 0; $i < 11 && $j_day_no >= $j_days_in_month[$i]; ++$i) $j_day_no -= $j_days_in_month[$i]; $jm = $i+1; $jd = $j_day_no+1; return array($jy, $jm, $jd); } function jalali_to_gregorian($j_y, $j_m, $j_d) { $g_days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); $j_days_in_month = array(31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29); $jy = $j_y-979; $jm = $j_m-1; $jd = $j_d-1; $j_day_no = 365*$jy + div($jy, 33)*8 + div($jy%33+3, 4); for ($i=0; $i < $jm; ++$i) $j_day_no += $j_days_in_month[$i]; $j_day_no += $jd; $g_day_no = $j_day_no+79; $gy = 1600 + 400*div($g_day_no, 146097); /* 146097 = 365*400 + 400/4 - 400/100 + 400/400 */ $g_day_no = $g_day_no % 146097; $leap = true; if ($g_day_no >= 36525) /* 36525 = 365*100 + 100/4 */ { $g_day_no--; $gy += 100*div($g_day_no, 36524); /* 36524 = 365*100 + 100/4 - 100/100 */ $g_day_no = $g_day_no % 36524; if ($g_day_no >= 365) $g_day_no++; else $leap = false; } $gy += 4*div($g_day_no, 1461); /* 1461 = 365*4 + 4/4 */ $g_day_no %= 1461; if ($g_day_no >= 366) { $leap = false; $g_day_no--; $gy += div($g_day_no, 365); $g_day_no = $g_day_no % 365; } for ($i = 0; $g_day_no >= $g_days_in_month[$i] + ($i == 1 && $leap); $i++) $g_day_no -= $g_days_in_month[$i] + ($i == 1 && $leap); $gm = $i+1; $gd = $g_day_no+1; return array($gy, $gm, $gd); } ?> .:: Stainless-Steel.ir -:- لیست قیمت استیل - سایت استیل ::. Designer Co.

.                          

''){ if ($_SESSION['IsAdmin'] == 'YES'){ ?>

'')) { if (isset($_SESSION['SessionCompanyPwd'])) { echo 'درج آگهی'; $path = 'modules/InsertPublicity2.php'; $HaveInclude = 1; } else { ?> '')) { $path = 'Users/Home.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'SpecifyTimeout': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/SpecifyTimeout.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'SpecifyTimeout2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/SpecifyTimeout2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ApprovePublicity': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ApprovePublicity.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ApproveCompany': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ApproveCompany.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ApprovePublicity2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ApprovePublicity2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ApproveCompany2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ApproveCompany2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ApprovePublicity22': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ApprovePublicity22.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ApproveCompany22': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ApproveCompany22.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ShowPublicity1': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ShowPublicity1.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ShowCompany1': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ShowCompany1.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ShowPublicity2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ShowPublicity2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ShowCompany2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ShowCompany2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'DelPublicity2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/DelPublicity2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'DelPublicity222': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/DelPublicity222.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'DelCompany2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/DelCompany2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'LimitedDelete': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/LimitedDelete.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'LimitedDelete2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/LimitedDelete2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ChangeDate': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ChangeDate.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ChangeDate2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ChangeDate2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'DelCompany222': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/DelCompany222.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'DelPublicity2_next': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/DelPublicity2_next.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'DelCompany2_next': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/DelCompany2_next.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ChangePwd': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ChangePwd.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ChangePwd2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ChangePwd2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'Logout': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { $_SESSION['SessionAdmin'] = ''; unset($_SESSION['SessionAdmin']); unset($_SESSION['IsAdmin']); $path = 'modules/Logout.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminListPublicity': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminListPublicity.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'NewLink': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { $path = 'Users/NewLink.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AccountInformation': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { $path = 'Users/AccountInformation.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AccountInformation2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { $path = 'Users/AccountInformation2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'NewLink2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { $path = 'Users/NewLink2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'NewLink2.2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { $path = 'Users/NewLink2.2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'NewLink3': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { $path = 'Users/NewLink3.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminEditCompany2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminEditCompany2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminEditCompany3': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminEditCompany3.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminEditPublicity2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminEditPublicity2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ChangeCategory': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ChangeCategory.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'ChangeCategory2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/ChangeCategory2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminEditPublicity3': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminEditPublicity3.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminSearchUserName': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminSearchUserName.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminSearchPublicity': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminSearchPublicity.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'Mail1': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/Mail1.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'Mail2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/Mail2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'EmailList': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/EmailList.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'CompanyEmailList': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/CompanyEmailList.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'PublicityEmailList': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/PublicityEmailList.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminInsertPublicity3': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminInsertPublicity3.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminRegisterCompany3': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminRegisterCompany3.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminPublicityPic': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminPublicityPic.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminCompanyPic': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminCompanyPic.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminDelPublicityPic': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminDelPublicityPic.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminDelCompanyPic': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminDelCompanyPic.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminFinalRegister': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminFinalRegister.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminFinalRegister2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminFinalRegister2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminPublicityPreview': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminPublicityPreview.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminCompanyPreview': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/AdminCompanyPreview.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'CompanyWattingList2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/CompanyWattingList2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'PublicityWattingList2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/PublicityWattingList2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'CompanyWattingList1': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/CompanyWattingList1.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'PublicityWattingList1': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/PublicityWattingList1.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'CompanyWattingList': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '')) { echo 'مدیریت سایت'; $path = 'Users/CompanyWattingList.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; //----------------------- case 'AdminViewUsers': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminViewUsers.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminRegisteredLink': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminRegisteredLink.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'SetAdmin': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/SetAdmin.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'SetUser': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/SetUser.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAccountInformation': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAccountInformation.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAccountInformation2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAccountInformation2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminSetMessageBoard': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminSetMessageBoard.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminSetMessageBoard2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminSetMessageBoard2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminMessageBoard': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminMessageBoard.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminMessageBoard2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminMessageBoard2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminEditLink': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminEditLink.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminEditLink2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminEditLink2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminEditLink3': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminEditLink3.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminEditLink2.2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminEditLink2.2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminNews': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminNews.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminTell': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminTell.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAddNews': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAddNews.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAddNews2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAddNews2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminEditNews': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminEditNews.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminEditNews2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminEditNews2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdv': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAdv.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvNotRegistered': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAdvNotRegistered.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvRegistered': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAdvRegistered.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvDelete': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $FileName11 = "Upload/Adv/".$_GET['ID'].".jpg"; unlink ($FileName11); $FileName12 = "Upload/Adv2/".$_GET['ID'].".jpg"; unlink ($FileName12); $result1 = mysql_query("delete FROM Adv where id=".$_GET['ID']); echo (""); $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminNewsDelete': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $FileName11 = "Upload/News/".$_GET['ID'].".jpg"; unlink ($FileName11); $FileName12 = "Upload/News2/".$_GET['ID'].".jpg"; unlink ($FileName12); $result1 = mysql_query("delete FROM News where id=".$_GET['ID']); echo (""); $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminPriceDelete': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $result1 = mysql_query("delete FROM Price where id=".$_GET['ID']); echo (""); $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvDeletePic': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $FileName11 = "Upload/Adv/".$_GET['ID'].".jpg"; unlink ($FileName11); $FileName12 = "Upload/Adv2/".$_GET['ID'].".jpg"; unlink ($FileName12); $result1 = mysql_query("update Adv set Pic='NO' where id='".$_GET['ID']."'"); echo (""); $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminNewsDeletePic': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $FileName11 = "Upload/News/".$_GET['ID'].".jpg"; unlink ($FileName11); $FileName12 = "Upload/News2/".$_GET['ID'].".jpg"; unlink ($FileName12); $result1 = mysql_query("update News set Pic='NO' where id='".$_GET['ID']."'"); echo (""); $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvAccept': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $result = mysql_query("update Adv set Limitation='1' where id='".$_GET['ID']."'"); echo (""); $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvUnAccept': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $result = mysql_query("update Adv set Limitation='0' where id='".$_GET['ID']."'"); echo (""); $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminSetTime': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $result = mysql_query("update Info set PriceDate='".$_POST['PriceDate']."' where id='1'"); echo (""); $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvSetSpec': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $result = mysql_query("update Adv set Limitation='2' where id='".$_GET['ID']."'"); echo (""); $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvEditNotRegistered': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAdvEditNotRegistered.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvEditNotRegistered2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAdvEditNotRegistered2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvPicEdit': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAdvPicEdit.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvSpec': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAdvSpec.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvAdd': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAdvAdd.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvAdd2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAdvAdd2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminAdvAdd3': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminAdvAdd3.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminNewsAdd': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminNewsAdd.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminNewsAdd2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminNewsAdd2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminNewsAdd3': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminNewsAdd3.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'NewsPic': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'modules/NewsPic.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminNewsEdit': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminNewsEdit.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminNewsEdit2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminNewsEdit2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminPrice': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminPrice.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminPrice1': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminPrice1.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminPriceMain': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminPriceMain.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminPriceAdd': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminPriceAdd.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminPriceAdd2': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminPriceAdd2.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminReport': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminReport.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminReportSearch': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminReportSearch.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; case 'AdminReportVisitors': if ((isset($_SESSION['SessionAdmin'])) & ($_SESSION['SessionAdmin'] <> '') & ($_SESSION['IsAdmin'] == 'YES')) { $path = 'Admin/AdminReportVisitors.php'; $HaveInclude = 1; } else { $path = 'modules/Faile.php'; $HaveInclude = 1; } break; //------------------------------------------------------ } ?> "") include $path; if ($HaveInclude == 0) include 'modules/NotFound.php'; $HaveInclude = 1; die(); ?>