session_start(); include_once("./includes/user_queries.php"); // User Login Code if($_POST["go_x"]!="" && $_POST["go_y"]!="") { include_once("includes/login_track.php"); } //------Login Code Ends $login='yes'; /*if($_SESSION["userid"]=="" && $_SESSION["username"]=="") { $login='no'; header("location:hisp_models.php"); exit; }*/ if((!$_GET['catid']) || (!$_GET['modid']) || ($_GET['catid'] == '') || ($_GET['modid'] == '')) { header("location:hisp_models.php"); exit; } $sp_mod = hisp_models_by_cat_id_and_mod_id($_GET['catid'],$_GET['modid']); if(count($sp_mod) == 0) { header("location:hisp_models.php?err=1"); exit; } $main_img = $hisp_model_path . $sp_mod[0]['model_file_path'] ."/main_img/". $sp_mod[0]['main_image']; include("includes/top_rolemodels.php"); $hisp_cat_name = get_from_hisp_cats($_GET['catid']); $cat_name = $hisp_cat_name[0]["hisp_cat_name"]; $prev = prev_mod($_GET['catid'],$_GET['modid']); $next = next_mod($_GET['catid'],$_GET['modid']); $p_count = count($prev); $n_count = count($next); if(($p_count > 0) && ($n_count > 0)) { $mid = "1"; } ?>
|