vars $url = strstr($_SERVER['REQUEST_URI'],$SEO_DIR); $vars = explode("/", $url); $vars_count = count($vars); $last = $vars_count-2; //if ($SEO_END!='/') for($x=1;$x<=$last;$x++) {$vars[$x]=str_replace($SEO_END,'',$vars[$x]);} // .html clear // <- // -> languages $lang = $DEFAULT_LANG; // -> ids & modules $no_var_like_this=0; $mod_pages=0; $mod_group=0; $mod_movie=0; $mod_search=0; //$mod_actors=0; //$mod_actor=0; $actor_id=0; $admin_view=0; //$mod_new=0; // if($url!=$SEO_DIR) { for($x=1;$x<=$last;$x++) { $uzklausa_pages = mysql_query("SELECT id FROM $TBL_MOD_PAGES WHERE 1 AND (sef_alias='".$vars[$x]."' || id='".$vars[$x]."')"); $uzklausa_cat = mysql_query("SELECT id FROM $TBL_MOD_CATALOG WHERE 1 AND (sef_alias='".$vars[$x]."' || id='".$vars[$x]."')"); $uzklausa_prod = mysql_query("SELECT id FROM $TBL_MOD_CATALOGPRODS WHERE (sef_alias='".$vars[$x]."' || id='".$vars[$x]."')"); if(($rez_var=mysql_fetch_array($uzklausa_pages))>0) {$vars_id[$x]=$rez_var['id']; $mod_pages=1;} elseif(($rez_var=mysql_fetch_array($uzklausa_cat))>0) {$vars_id[$x]=$rez_var['id']; $mod_group=1; $cat_id=$vars_id[$x]; $psl_id=$_GET['p'];} elseif(($rez_var=mysql_fetch_array($uzklausa_prod))>0) {$vars_id[$x]=$rez_var['id']; $mod_movie=1; $movie_id=$vars[$x+1];} else $no_var_like_this=1; // security from bad links // if($vars[$x]=="laida") {$mod_movie=1;} //if($vars[$x]=="actor") {$mod_actor=1; $actor_id=cele_istraukiam_id('id',$TBL_MOD_PARAMSPRODS,'sef_alias',$vars[$x+1]); $_SESSION['param_actor_id']=$actor_id; /*echo"";*/ //} //if($vars[$x]=="actors") {$mod_actors=1;} if($vars[$x]=="all") {$admin_view=1;} if($vars[$x]=="search") {$mod_search=1;} } } // <- // -> sessions //if(!isset($_SESSION['view'])) {$_SESSION['view']='by4';} //if(!isset($_SESSION['param_actor_id'])) {$_SESSION['param_actor_id']='';} // <- // -> actions //if (isset($_POST['action'])) {include 'inc/actions.php';} //echo $_POST['param_year']; //if (!empty($_POST['actionp'])) {include 'inc/actions_param.php';} // <- $this_datetime=date('Y-m-d H:i:s'); $show_from=$this_datetime; $show_till=$this_datetime; if(isset($_GET['all'])) {$show_from='2100-01-01';$show_till='2000-01-01';$all_link="?all";} ?> <? if(!empty($rez_title['sef_title'])) {echo $rez_title['sef_title'];} elseif(!empty($rez_title['title'])) {echo $rez_title['title'];} else {$rez_title['sef_title'];} ?> " /> " /> ?> */ ?> '$show_till' AND visible='1'"); if(mysql_num_rows($q_movie)>0) { $rez_movie=mysql_fetch_array($q_movie); $movie_link=$rez_movie['id']; if(!empty($rez_movie['id'])) {$movie_link=$rez_movie['sef_alias'];} //$this_url='http://www.nktv.lt'.$_SERVER['REQUEST_URI']; $this_url='http://www.nktv.lt/laida/'.$movie_link.$SEO_END; $cover="http://www.nktv.lt/img/nktv100.jpg"; if(!empty($rez_movie['img_mini'])&&is_file($DIR_CATALOG_ADM.$rez_movie['img_mini'])) {$cover=$DIR_CATALOG_ADM_WWW.$rez_movie['img_mini'];} ?> " /> "; print_r($_SERVER); echo ''; ?>