'community','dir_name'=>'qnmit')); if($u->isLogged()){ $cache = 0; $div_loggati = "
\n
"; } }else{ $cache = 0; } */ if($b!='pornostar'){ $opt = array('project_name'=>'community','dir_name'=>'qnmit'); $u=TDev_User::getFactory($opt); $LV = new TDev_Tpl(array('encoding'=>'UTF-8'), $opt); if($u->isFBConnected()) { $fbn = $u->getName(); $name = ''.$fbn['nome'].' '.$fbn['cognome'].''; $logout = 'Esci'; $fbclass = 'fb-user '; } else { $name = $u->getNick(); $logout = 'Esci'; } $help_popup = TDev_Utils::makePopup(TDev_Link::getAbs('qnmit_community','popup.php?v=faq'),"Help", 'rel="nofollow"'); $pm = $u->getNumPM(); if(!$pm) $pm = 0; if($u->isLogged()){ $cache = 0; $div_loggati = "
\n"; $div_loggati .= " \n"; $div_loggati .= "
\n"; }else{ $cache = 0; $div_loggati = "
\n"; $div_loggati .= " \n"; $div_loggati .= "
\n"; $div_loggati .= " \"Facebook\n"; } }else{ $cache = 0; } define('_ZEND_FORUM_CACHE_', $cache); if ($cache) { $zend_id_pagina = 'qnm_'.md5($_SERVER['REQUEST_URI']); $timeout = set_timeout(); $frontendOptions = array( 'lifetime' => $timeout, 'caching' => true, 'automatic_serialization' => false, 'automatic_cleaning_factor' => 0, ); $memcachedOptions = array( 'compression'=>false, //'compatibility'=>false, 'servers'=>array( 0=>array( 'host'=>'172.16.1.51', 'port'=>'11600', 'persistent'=>true, 'weight'=>1, 'timeout'=>5, 'retry_interval'=>15, 'status'=>true, //'failure_callback'=>'' ), ) ); require_once _LIBRARY_ZEND_ . '/Zend/Cache.php'; //$zend_cache = Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions); //$zend_id_pagina = md5($_SERVER["REQUEST_URI"]); $zend_cache = Zend_Cache::factory('Core', 'Memcached', $frontendOptions, $memcachedOptions); if ($zend_page = $zend_cache->load($zend_id_pagina) ) { header('Content-Type: text/html; charset=utf-8'); echo $zend_page; echo "\n"; echo "\n"; exit; } @ob_start(); } include($root."src/project/qnm/bv/inc/check_foto_index.php"); $is_index = CheckFotoIndex($_SERVER['REQUEST_URI']); function PageInfo() { $xthis[host] = $_SERVER["SERVER_NAME"]; preg_match("/\.(\w+)$/", $_SERVER["SERVER_NAME"], $myVal); $xthis[domain] = strtolower($myVal[1]); $xthis[pathName] = dirname($_SERVER['SCRIPT_FILENAME']); $xthis[fileName] = basename($_SERVER['SCRIPT_FILENAME']); $xthis[pathWeb] = str_replace($_SERVER['DOCUMENT_ROOT'], '', $xthis[pathName]); $xthis[remoteAddress] = $_SERVER["REMOTE_ADDR"]; $xthis[url] = $_SERVER['PHP_SELF']; preg_match("/\.(\w+)$/", $_SERVER["SCRIPT_FILENAME"], $myVal); if (isset($myVal[1])) { $xthis[realExtension] = $myVal[1]; $xthis[virtualExtension] = ''; $xthis[args] = $_REQUEST; }else{ $xthis[realExtension] = ''; $args = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['PHP_SELF']); $patterns = array("/\/$/", "/^\//"); $args = preg_replace($patterns, '', $args); $args = explode('/', $args); $xthis[args] = $args; $maxArgs = count($args) - 1; preg_match("/\.(\w+)$/", $xthis[args][$maxArgs], $myVal); $xthis[virtualExtension] = isset($myVal[1]) ? $myVal[1] : ''; } return $xthis; } include($root."src/project/qnm/bv/CLASS/newalbum.inc"); // CONTROLLO FOTO // if (preg_match("/foto$/", $_SERVER['SCRIPT_URI'])) { header("HTTP/1.1 301 Found"); header("Location: ".$_SERVER['SCRIPT_URI']."/"); header("Connection: close"); exit; } if (preg_match("/foto$|foto\/$/", $_SERVER['SCRIPT_URI'])) { $alb = new Album(); $numf1 = $alb->filenum(); echo 'Index of '.$_SERVER['REQUEST_URI'].''; echo '

Index of '.$_SERVER['REQUEST_URI'].'


';
   for($k=1; $k<=$numf1; $k=$k+1) {
   	echo ''.$k.'/
'; } echo '
'; exit; } // CONTROLLO SLASH FINALE // if (!preg_match("/\/$/", $_SERVER['REQUEST_URI'])) { header("HTTP/1.1 301 Found"); header("Location: ".$_SERVER['REQUEST_URI']."/"); header("Connection: close"); } //controlli... if (is_numeric($p) && $p > 0) { if ($p >= 1) $p = $p - 1; else $p = 0; }else{ include($root.'src/web/qnm/bellezze/notfound404.htm'); exit; } include($root."src/project/qnm/bv/accesso/ipfrom.php"); $pos = strpos($HTTP_USER_AGENT,"Offline Explorer"); $pos1 = strpos($HTTP_USER_AGENT,"Teleport Pro"); if (($pos === true) || ($pos1 === true)) exit; include($root."src/project/qnm/bv/VipWWW.php"); include($root."src/project/qnm/bv/CLASS/template.inc"); if (is_file(INC_ALBUM_HTML_DIR."/nophoto/$d.html")) { include($root.'src/web/qnm/bellezze/notfound404.htm'); exit; } if($b == "" || $d == "") Header("Location: index.php"); $b_param = $b; if(!preg_match("/_/", $b)){ $b = $arr_categorie[$b]; } $bnome = ""; $array_bnome = explode("_", $b); $bcicli = sizeof($array_bnome)-1; for($bn=0; $bn<=$bcicli; $bn++){ $bnome .= ucfirst(strtolower($array_bnome[$bn]))." "; } $dnome = ""; $array_dnome = explode("_", $d); $dcicli = sizeof($array_dnome)-1; for($bn=0; $bn<=$dcicli; $bn++){ $array_dnome[$bn] = preg_replace ("/123/", "'", $array_dnome[$bn]); $dnome .= ucfirst(strtolower($array_dnome[$bn]))." "; } /* if($d == "alessia_fabiani") $addx = "/calendari/ALE"; elseif($d == "sara_e_beppe_2003") $addx = "/calendari/ALE2"; */ // 1.1 ISTANZA DI TEMPLATE $t = new Template(".", "remove"); // 1.2 LEGAME TRA VARIABILI E PAGINE HTML $t->set_file(array("page" => INC_ALBUM_HTML_DIR.$addx."/photoTsw3.html", "topbanner" => INC_ALBUM_HTML_DIR.$addx."/photo_topbanner.html", "bottombanner" => INC_ALBUM_HTML_DIR.$addx."/photo_bottombanner.html", "LASTTAG" => INC_ALBUM_HTML_DIR.$addx."/codice.html" )); require_once($root.'src/project/qnm/bv/CLASS/TextRandomizer.class.php'); $tr = new TextRandomizer($root.'src/project/qnm/bv/CLASS/textRandomizer_foto.ini'); $random_text = $tr->getRandomTextFoto($root.'src/project/qnm/bv/HTML/descrizioni/immagini', $d, $p + 1); $path_foto = "/bellezze/".$b."/".$d."/"; if($b=='pornostar'){ $path_foto = "/pornostar/".$d."/"; } $path_hub = "/bellezze/".$b."/".$d."/"; if($b=='pornostar'){ $path_hub = "/pornostar/".$d."/"; } $path_categ = "/bellezze/".$b."/"; if($b=='pornostar'){ $path_categ = "/pornostar/"; } if($b!='pornostar'){ $tag_banner = "qnm.it/qnm_it_gr"; $_adv = TDev_Adv::getFactory(array('project_name'=>'qnm','dir_name'=>'qnmit','section' => 'altrepagine')); $dati_brand = $_adv->getBrandInfo(true); $style_brand = $_adv->getBrandStyle(); $divtop = $_adv->getBrandTop(); $fullbanner = $_adv->getBrandExpanding(); $repositioning = $_adv->getRepositioningCenterBanner('728x90',-95); }else{ $tag_banner = "Bellezzevip.com/bv_it_pornostar"; $_adv = TDev_Adv::getFactory(array('project_name'=>'qnm','dir_name'=>'qnmit','section' => 'pornostar')); $dati_brand = $_adv->getBrandInfo(true); $style_brand = $_adv->getBrandStyle(); $divtop = $_adv->getBrandTop(); $fullbanner = $_adv->getBrandExpanding(); $repositioning = $_adv->getRepositioningCenterBanner('728x90',-95); } if($b!='pornostar'){ $title_suffix = "QNM"; }else{ $title_suffix = "BellezzeVip"; } if($b!='pornostar'){ $logo = "logo.png"; $label_logo = "
Il magazine online di lifestyle maschile
"; }else{ $logo = "logoBV.png"; $label_logo = ""; } if($b!='pornostar'){ $bannerSection = 'altrepagine'; }else{ $bannerSection = 'pornostar'; } if($b!='pornostar'){ $link_rss = "

\"ico-rss.png,

"; }else{ $link_rss = ""; } if($b!='pornostar'){ $footer = "

© 2008-2009 QNM, tutti i diritti riservati - Trilud S.p.A. - P.iva: 13059540156. Privacy

  |  Redazione

  |  Contattaci

  |  Pubblicità su QNM

\"rss\"

QNM, supplemento alla testata giornalistica NanoPress registrata presso il Tribunale di Milano n° 314/08

"; }else{ $footer = "

© 2008-2009 BellezzeVip, tutti i diritti riservati - Trilud S.p.A. - P.iva: 13059540156.

  |  Pubblicità su BellezzeVip

"; } if($b=='pornostar'){ $analytics = ""; }else{ $analytics = ""; } if($b!='pornostar'){ /*$style_brand = "";*/ $style_brand = $_adv->getBrandStyle(); }else{ $style_brand = ""; } $banner1 = ""; $banner2 = ""; if($b!='pornostar'){ $banner1 = "
"; $banner2 = "
"; } //I banner sopra definiti sono solo saltuari..da abilitare in caso di campagne particolari..nel caso decommentare // le righe qua sotto $banner1 = ""; $banner2 = ""; //Disclaimer $disclaimer = ""; $referer = $_SERVER['HTTP_REFERER']; if($b=='pornostar' && !preg_match("/^http:\/\/www.bellezzevip.com\/pornostar\//i",$referer)){ $disclaimer = ""; } $bottoneFB = ''; $blocco_top_notizie = ''; if($b!='pornostar'){ $opt = array('project_name'=>'qnm','dir_name'=>'qnmit'); $db = TDev_Db::getFactory($opt); $tabella_bellezze = TDev_BellezzeBV::getFactory($db, $opt); $item = $tabella_bellezze->frontGetFromUrlId($d); if($item['is_phantom_page']){ $urlbv = $item['phantom_page_data']['url']; $bottoneFB = ''; } if(file_exists('/clusterfs/fs01/prod/sites/qnm/www/wp-content/blocchi-html/top_qnmit_bellezze.html')){ $blocco_top_notizie = file_get_contents('/clusterfs/fs01/prod/sites/qnm/www/wp-content/blocchi-html/top_qnmit_bellezze.html'); } } if($b!='pornostar'){ $fb = TDev_Facebook::getFactory(array('project_name'=>'community','dir_name'=>'qnmit')); $script_fb = str_replace('{','{ ',$fb->getConnectCode(false)); $script_fb.= $fb->getCookieCode(); $script_sbianca = ''; //if(($p+1)>=3){ //if($u->getNick()=='bl4ckblue'){ //$script_sbianca = ""; //}else{ $script_sbianca = ""; //} $script_fb .= $script_sbianca; }else{ $script_fb = ''; } if($b!='pornostar'){ $circuito_ie9 = 'qnm'; $nomeblog_ie9 = 'bellezze'; $IE9_Pin = TDev_Pin::getInstance($circuito_ie9,$nomeblog_ie9); $meta_ie9 = $IE9_Pin->getMetadata(false); }else{ $circuito_ie9 = 'qnm'; $nomeblog_ie9 = 'pornostar'; $IE9_Pin = TDev_Pin::getInstance($circuito_ie9,$nomeblog_ie9); $meta_ie9 = $IE9_Pin->getMetadata(false); } $iframe_nanopress = ''; if($b!='pornostar'){ $iframe_nanopress = ''; } $t->set_var(array("Titolo" => $d, "DIR" => $d, "BASE_PARAM" => $b_param, "BASE" => $b, "XP2" => $bnome, "XP21" => strtolower(trim($bnome)), "XP4" => $dnome, "XP41" => trim($dnome), "PAG" => $p+1, "ROBOTS" => $is_index ? "index,archive,follow" : "noindex", "RNDTEXT" => $random_text, "PATH_PHOTO"=>$path_foto, "PATH_HUB"=>$path_hub, "PATH_CATEG"=>$path_categ, "DIVLOGGATO"=>$div_loggati, "TAGBANNER" => $tag_banner, "BANNER1"=>$banner1, "BANNER2"=>$banner2, "TITLESUFFIX"=>$title_suffix, "LABELLOGO"=>$label_logo, "LOGO"=>$logo, "LINKRSS"=>$link_rss, "HTMLFOOTER"=>$footer, "ANALYTICS"=>$analytics, //"BRAND"=>$style_brand, //"DIVTOP"=>$divtop, //"FULLBANNER"=>$fullbanner, //"REPOSITIONING"=>$repositioning, "DISCLAIMER"=>$disclaimer, "BUTTONFB"=>$bottoneFB, "SCRIPTFB"=>$script_fb, "BLOCCOTOPNOTIZIE"=>$blocco_top_notizie, "METAIE9"=>$meta_ie9, "BARRANANOPRESS"=>$iframe_nanopress, "BANNERSECTION"=>$bannerSection )); // 1.4 VALORIZZAZIOBE DELLE VARIABILI $path_dir = $b; $foto = new Album($root."src/web/qnm/bellezze/$b/$d/"); $numf1 = $foto->filenum2($root."src/web/qnm/bellezze/$b/$d"); $info = $foto->photoinfo($p); $array_photo = explode("#", $info); $image = $array_photo[0]; $numtot = $array_photo[1]; // CONTROLLO FOTO // if ($image == '') { include($root.'src/web/qnm/bellezze/notfound404.htm'); exit; } // CONTROLLO FOTO // $prec = $p; $t->set_block("page", "row", "rows"); if($prec > 0){ $t->set_var(array("PE" => "$prec")); if($b!='pornostar'){ $t->set_var(array("LPREC"=>"<< foto precedente")); }else{ $t->set_var(array("LPREC"=>"<< foto precedente")); } }else{ $t->set_var(array("row" => " ")); $t->set_var(array("LPREC"=>" ")); } $t->parse("rows", "row", true); $t->set_var(array("PHOTO" => $image, "TOT" => $numtot)); $succ = $p + 2; if($succ < $numf1 + 1){ $t->set_block("page", "row1", "rows1"); $t->set_var(array("PU" => "$succ")); if($b!='pornostar'){ $t->set_var(array("LSUCC"=>"foto successiva >>")); }else{ $t->set_var(array("LSUCC"=>"foto successiva >>")); } $t->parse("rows1", "row1", true); }else{ $t->set_block("page", "row1", "rows1"); $t->parse("", "row1", true); $t->set_var(array("LSUCC"=>" ")); } $t->pparse("STAMPA", array("topbanner","bottombanner","LASTTAG","page")); if (_ZEND_FORUM_CACHE_) { header('Content-Type: text/html; charset=utf-8'); $zend_page = @ob_get_contents(); if ($zend_page != '') { //$zend_cache->save($zend_page."", $zend_id_pagina); $zend_cache->save($zend_page, $zend_id_pagina); } @ob_end_flush(); } function set_timeout() { return 3600; //1h } ?>