0) { $getInfo_lang = getInfoSql(" * ", " cms_lang ", " idLang = '".$GLOBALS['idLang']."' AND idCategories = '".$getID."' "); if($getInfo_lang) { $prepareLINK = cms_url($getInfo_lang['SEOurl']); header("Location: ".$prepareLINK); die(); } } //by: url $getURL = mysqli_sanitize($_GET['url']); $getInfo_lang = getInfoSql(" * ", " cms_lang ", " idLang = '".$GLOBALS['idLang']."' AND SEOurl = '".$getURL."' "); if($getInfo_lang) { $getInfo = getInfoSql(" * ", " cms ", " display = '1' AND id = '".$getInfo_lang['idCategories']."' "); $includeContent = $getInfo['phpIncludes_content']; $titluCMS = $getInfo_lang['name']; if ($getInfo_lang['descriere']) { $getInfo_lang['descriere'] = addModules($getInfo_lang['descriere']); } if(!$getInfo) { header("Location: ".BASE_URL."404.php"); } } else { header("Location: ".BASE_URL."404.php"); } //redirect if(strpos($_SERVER['REQUEST_URI'], '.php') && $getInfo_lang) { $prepareLINK = cms_url($getInfo_lang['SEOurl'])."?".$_SERVER['QUERY_STRING']; header("Location: ".$prepareLINK); } //redirect DB if ($getInfo['phpRedirect']) { header("Location: ". $getInfo['phpRedirect'] ); } // S: Adaugare statistica addStat('view', 'cms', $getInfo['id']); // E: Adaugare statistica $pageTitle = $getInfo_lang['SEOtitlu'] . ' | '. $infoProgram['siteNume']; $pageKeywords = $getInfo_lang['SEOkeywords'] . ' | '. $infoProgram['siteNume']; $pageDescription = $getInfo_lang['SEOdesc'] . ' | '. $infoProgram['siteNume']; $page = $getInfo_lang['SEOurl']; $page_og['title'] = $pageTitle; $page_og['description'] = $pageDescription; $page_og['type'] = 'website'; $page_og['url'] = $page_canonical; $firstPicId = $_GET['firstPicId']; if ($firstPicId) { $getPic = getContentMySql_2(" * ", " cms_poze ", " idItem='".$getInfo['id']."' AND id <> '".$firstPicId."' ", " sort ASC, id ASC ", ""); $firstPic = getInfoSql(" * ", " cms_poze ", " id = '".$firstPicId."' "); array_unshift($getPic, $firstPic); } else { //set pag PIC $pagNrRowSQL_PIC = 1; $pagLimitSQL_PIC = 100; //nr afisari if (mysqli_sanitize($_GET['pagina'])) $pagNrRowSQL_PIC = mysqli_sanitize($_GET['pagina']); $limitSql_PIC = ($pagNrRowSQL_PIC-1)*$pagLimitSQL_PIC.",".$pagLimitSQL_PIC; //-1 datorita paginii sa fie de la 1 si * nr de produse pentur ca avem pagina $getPic = getContentMySql_2(" * ", " cms_poze ", " idItem='".$getInfo['id']."' ", " sort ASC, id DESC ", $limitSql_PIC); $totalSQLresultSforPag_PIC = getTotalMySql(" cms_poze ", " idItem='".$getInfo['id']."' "); } if ($getPic) { $page_og['image'] = UPLOADS_URL .'cms-gallery/big/'. $getPic[0]['img']; } if ($getInfo['img']) { $getInfo['img'] = UPLOADS_URL . 'cms/img/' . $getInfo['img']; $page_og['image'] = $getInfo['img']; } $breadcrumbs = array(); $breadcrumbs[cms_url($getInfo_lang['SEOurl'])] = $getInfo_lang['name']; $categorii_side = getContentMySql_2(" *, t1.id as id ", " cms t1 INNER JOIN cms_lang t2 ON(t1.id = t2.idCategories AND t2.idLang = '".$GLOBALS['idLang']."') ", " t1.display = '1' AND t1.parent = '".$getInfo['id']."' ", " sort ASC ", ""); if ($getInfo['parent']) { $info_parent = getInfoSql(" * ", " cms ", " id = '".$getInfo['parent']."' "); if ($info_parent) { $info_parent_parent = getInfoSql(" * ", " cms ", " id = '".$info_parent['parent']."' "); } if ($info_parent) { $info_parent_lang = getInfoSql(" * ", " cms_lang ", " idCategories = '".$info_parent['id']."' AND idLang = '".$GLOBALS['idLang']."' "); } if ($info_parent_parent) { $check_active = 'cms-'.$info_parent_parent['id']; $check_sub_active = 'cms-'.$info_parent['id']; $check_sub_sub_active = 'cms-'.$getInfo['id']; } else if ($info_parent) { $check_active = 'cms-'.$info_parent['id']; $check_sub_active = 'cms-'.$getInfo['id']; } else { $check_active = 'cms-'.$getInfo['id']; } if (!$categorii_side) { $categorii_side = getContentMySql_2(" *, t1.id as id ", " cms t1 INNER JOIN cms_lang t2 ON(t1.id = t2.idCategories AND t2.idLang = '".$GLOBALS['idLang']."') ", " t1.display = '1' AND t1.parent = '".$getInfo['parent']."' ", " sort ASC ", ""); } } else { $check_active = 'cms-'.$getInfo['id']; } if ($getInfo['phpIncludes_head']) { include(INCLUDES_CMS_PATH . $getInfo['phpIncludes_head']); } $loadScripts = 'photoswipe socialshare swiper justifiedgallery timer'; $header_onlyLogo = $getInfo['header_onlyLogo']; $footer_onlyCopy = $getInfo['footer_onlyCopy']; include(INCLUDES_PATH.'_header.php'); ?>
'; } else { echo '
'.$getInfo_lang['descriere'].'
'; } ?>
'; echo '
'; echo htmlPaginare($totalSQLresultSforPag_PIC, $pagLimitSQL_PIC, $pagNrRowSQL_PIC, "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].""); echo '
'; echo '
'; echo '
'; ?>

Share if you like:

*/ ?>