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(); $options[categs]="yes"; $options[tags]="yes"; $id=addslashes($_GET[id]); $sql="select * from users where valid_account='yes' and id='$id'"; $author_details=sql_show_data($sql); $a_title=show_data($author_details[0][name],"out"); if(empty($a_title)) return_to_index (); //statistics $sql="select count(id) as nr from pages where user_id='".$author_details[0][id]."'"; $res= sql_show_data($sql); $nr_art=$res[0][nr]; $sql="select sum(visits) as nr from pages where user_id='".$author_details[0][id]."'"; $res= sql_show_data($sql); $sum_visits=!empty($res[0][nr])?$res[0][nr]:'0'; $sql="select distinct(id_parent) from pages where user_id='".$author_details[0][id]."'"; $result= mysql_query($sql); $sum_niches= mysql_num_rows($result); //--- //company details $page_limit=10; if(is_numeric($_GET['pag']) and $_GET['pag']>=1){ $pag=$_GET['pag']; } else{ $pag="1"; } $limit=$pag*$page_limit - $page_limit; //--- $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' and user_id='".$author_details[0][id]."' order by pages.id desc limit $limit,$page_limit "; $result=mysql_query($query) or die(mysql_error()); //nr inreg $query_limit=substr($query,0,strpos($query,"limit")); $result_limit=mysql_query($query_limit); $nr_inreg=mysql_num_rows($result_limit); //--- $articles=sql_show_data($query); $link_to_page="author-details-".$author_details[0][id]."-xxpagxx/".html($author_details[0][name]).".html"; $pagging_article=paging1($nr_inreg,$page_limit, $pag, $link_to_page,$a_name); $seo_pag=($pag=="1")?"":"Page ".$pag." - "; $seo_title=$seo_pag.$a_title." Profile - ZuArticles.com Expert Author - Articles List"; $seo_keywords="$a_title profile"; $seo_description=$seo_pag."$a_title profile as ZuArticles.com expert author. Please acces the site to see articles published by {$a_title}! "; $h1_top=$a_title; $breadcrumb="ZuArticles Authors » ".$a_title; if (! defined('ANTIHACK')) { die("Nu aveti voie"); } include_once('tpl/author_details.php'); // ftp pass 5Q!(yxn4?9W1 //creem cache daca se permite $ob->creaza_cache(); } ?>