exista_pagina_cache(); //daca exista pagina de cache if($pagina){ //afisam pagina de cache echo $ob->afiseaza_pagina_cache(); }else{ //verificam daca se permite cache $ob->permite_cahce(); //company details $page_limit=25; if(is_numeric($_GET['pag']) and $_GET['pag']>=1){ $pag=$_GET['pag']; } else{ $pag="1"; } $limit=$pag*$page_limit - $page_limit; //--- $sql="select count(*) as nr_inreg from pages"; $res_count=sql_show_data($sql); $nr_inreg=$res_count[0][nr_inreg]; $query="select pages.*, subcat.name as subcat_name, subcat.seo_link as subcat_seo_link,cat.name as cat_name, cat.seo_link as cat_seo_link from pages left join categories as subcat on subcat.id=pages.id_parent left join categories as cat on cat.id=pages.CatID where pages.visible='yes' order by pages.id desc limit $limit,$page_limit"; $res_art=sql_show_data($query); $link_to_page="all-articles-xxpagxx.html"; $pagging_article=paging1($nr_inreg,$page_limit, $pag, $link_to_page,$a_name); $seo_pag=($pag=="1")?"":"Latest articles page ".$pag." - "; $seo_title=$seo_pag."Latest Articles"; $seo_keywords=" latest articles, latest health articles, latest science articles, latest technology articles, latest business articles, latest employment articles, latest fashion articles"; $seo_description=$seo_pag."Latest articles from business, health, science, technology and aoher fields submited by ZU expert authors! Access our site and read latest articles!"; $h1_top="Latest Articles"; $breadcrumb="Latest Articles"; $options[categs]="yes"; $options[top_authors]="yes"; $options[tags]="yes"; if (! defined('ANTIHACK')) { die("Nu aveti voie"); } include_once('tpl/all_articles.php'); //creem cache daca se permite $ob->creaza_cache(); } ?>