0){ $q=mysql_query("UPDATE c SET counter=counter+1 WHERE date='$date'"); }else{ $q=mysql_query("INSERT INTO c (`id`,`counter`,`date`) VALUES('','1','$date') "); } $_SESSION['x']=1; } $_SESSION['session_language_id'] = (isset($_SESSION['session_language_id']) && $_SESSION['session_language_id'])? $_SESSION['session_language_id'] : $language_id; /*echo "asds".$_SESSION['session_language_id'].$_GET['lang'];*/ if(isset($_GET['lang'])){ $index = $_GET['lang']; $index = array_search($index, $webnetConfig_locale); if($index)$_SESSION['session_language_id'] = $index; } $languageid = $_SESSION['session_language_id']; if (!isset($_SESSION['session_access_id'])) $_SESSION['session_access_id'] = ' access = 0 '; if (!isset($_SESSION['Currencies_name'])) $_SESSION['Currencies_name'] = 'ریال'; if (!isset($_SESSION['Currencies_id'])) $_SESSION['Currencies_id'] = 'IRR'; /* if(!strstr($_SERVER['REQUEST_URI'] ,'?')){ require_once('intro.php'); }else{ */ require_once('includes/frontend.php'); require_once('includes/core.classes.php'); require_once('includes/cmtclasses.php'); $lang_val = $webnetConfig_locale[$languageid]; $direc = $webnetConfig_locale_direction[$lang_val]; if(isset($_REQUEST['option'])|| isset($_REQUEST['Itmid'])) $cur_template = "newocean_".$direc; else $cur_template = "newocean_".$direc; $_SESSION['CurrentTemplate'] = $cur_template; require_once( 'language/'.$lang_val.'/lang_'.$lang_val.'.php' ); if ( !file_exists( 'templates/'.$cur_template .'/index.php' ) ) { echo 'Template File Not Found! Looking for template '.$cur_template; } else { require_once( 'templates/'. $cur_template .'/index.php' ); } // } ?>