//require("t1.php");?> if(substr($_GET[id],0,1)==2) include("SubTemp1.php"); if(substr($_GET[id],0,1)==1) include("SubTemp2.php"); if($_GET[P]=='Search' or $_GET[string1]!='') include("Search.php"); if($_GET[P]=='news') include("News.php"); if($_GET[P]=='article') include("article.php"); if($_GET[P]=='Etelaeyeh') include("Etelaeyeh.php"); if($_GET[P]=='amuz') include("amoz.php"); function showdate($date){ $date=explode("/",$date); switch ($date[1]) { case 1: $date[1]="فروردین"; break; case 2: $date[1]="اردیبهشت"; break; case 3: $date[1]="خرداد"; break; case 4: $date[1]="تیر"; break; case 5: $date[1]="مرداد"; break; case 6: $date[1]="شهریور"; break; case 7: $date[1]="مهر"; break; case 8: $date[1]="آبان"; break; case 9: $date[1]="آذر"; break; case 10: $date[1]="دی"; break; case 11: $date[1]="بهمن"; break; case 12: $date[1]="اسفند"; break; } $date[2]=intval($date[2]);//change days number from this 0* to * when th number is lessthan 10 $date=$date[2]." ".$date[1]." ".$date[0]; return $date; } // -------------------- Gregorian to Jalali ------------- require_once ("Arzbin.php"); $listmonth = array(31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29); list($gyear, $gmonth, $gday ) = preg_split ('/-/', date("Y-m-d")); //seting date with Gregorian to Jalali dconvertor script list( $CurrentYear, $CurrentMonth, $CurrentDay ) = gregorian_to_jalali($gyear, $gmonth, $gday); $jdate=sprintf("%04d/%02d/%02d", $CurrentYear, $CurrentMonth,$CurrentDay); ?>