'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) { /* $frontendOptions = array( 'lifetime' => 21600, 'caching' => true, 'automatic_serialization' => false, 'automatic_cleaning_factor' => 3000, ); $backendOptions = array( 'cache_dir' => '/cache/bellezze/altro/', 'hashed_directory_level' => 4, 'read_control' => false, 'file_locking' => false ); */ $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(); } /* * Pagine successive bellezza. */ $root = "/clusterfs/fs01/prod/"; /*** OVERTURE ***/ if(preg_match('/pornostar/', $_SERVER['SCRIPT_FILENAME'])) $overstring = 'sexy+shop'; else $overstring = 'incontri,annunci+personali'; include $root."bellezze_vip/bv/ovtlib.php"; /*** OVERTURE ***/ $dnome = "Click per\n ingrandire!"; include($root."src/project/qnm/bv/VipWWW.php"); include($root."src/project/qnm/bv/CLASS/template.inc"); include($root."src/project/qnm/bv/CLASS/newalbum.inc"); $arr_b[2] = $p.".htm"; $b_param = $b; if(!preg_match("/_/", $b)){ $b = $arr_categorie[$b]; } //Verifico categoria e bellezza if(!file_exists($root."src/web/qnm/bellezze/".$b."/") || !file_exists($root."src/web/qnm/bellezze/".$b."/".$d."/")){ include($root.'src/web/qnm/bellezze/notfound404.htm'); exit; } $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(file_exists($root."src/project/qnm/bv/HTML/PLUS/vedi_".$d.".html")) $vedianche = "vedi_".$d; else $vedianche = "vedianche"; if(file_exists($root."src/project/qnm/bv/HTML/PLUS/piu_".$d.".html")) $piuclick = "piu_".$d; else $piuclick = "piucliccate"; function make_seed(){ list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 100000); } srand(make_seed()); $randval = rand(1, 4); if ($randval == 2) $randval = 1; if ($randval == 3) $randval = 4; if (is_file(INC_ALBUM_HTML_DIR."/nophoto/$d.html")) { $filealbum = 'album_nophoto.html'; $filetestopost = "/nophoto/$d.html"; }else{ $filealbum = 'albumTsw.html'; $filetestopost = "/descrizioni/testopost_nophoto.html"; } 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'){ $bannerSection = 'altrepagine'; }else{ $bannerSection = 'pornostar'; } if($b!='pornostar'){ $link_history = "/bellezze/$b"; }else{ $link_history = "/pornostar/"; } $path_hub = "/bellezze/".$b."/".$d."/"; if($b=='pornostar'){ $path_hub = "/pornostar/".$d."/"; } if($b=='pornostar'){ $dom = "BellezzeVip"; }else{ $dom = "QNM"; } if($b!='pornostar'){ $logo = "logo.png"; $label_logo = "
Il magazine online di lifestyle maschile
"; }else{ $logo = "logoBV.png"; $label_logo = ""; } if($b!='pornostar'){ $titolo_pagina = $dnome.$arr_fotolabel[$p]." | ".$dom; }else{ $titolo_pagina = $dnome." Nuda".$arr_fotolabel[$p]." | ".$dom; } 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 = "";*/ }else{ } //Disclaimer $disclaimer = ""; $referer = $_SERVER['HTTP_REFERER']; if($b=='pornostar' && !preg_match("/^http:\/\/www.bellezzevip.com\/pornostar\//i",$referer)){ $disclaimer = ""; } $fb = TDev_Facebook::getFactory(array('project_name'=>'community','dir_name'=>'qnmit')); $script_fb = str_replace('{','{ ',$fb->getConnectCode(false)); $script_fb.= $fb->getCookieCode(); $socialbox = ''; if($b!='pornostar'){ $socialbox = '
Segui QNM

'; } 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); } // 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."/".$filealbum, "topbanner" => INC_ALBUM_HTML_DIR.$addx."/album_topbanner.html", "piuclick" => INC_ALBUM_HTML_DIR."/PLUS/$piuclick.html", "vedianche" => INC_ALBUM_HTML_DIR."/PLUS/$vedianche.html", "bottombanner" => INC_ALBUM_HTML_DIR.$addx."/album_bottombanner_$randval.html", "dxtopbanner" => INC_ALBUM_HTML_DIR.$addx."/album_dxtopbanner.html", "dxbottombanner" => INC_ALBUM_HTML_DIR.$addx."/album_dxbottombanner.html", "dx" => INC_ALBUM_HTML_DIR.$addx."/album_dx.html", "LASTTAG" => INC_ALBUM_HTML_DIR.$addx."/codice.html" )); if (!preg_match('/(\d+)\.htm/', $arr_b[2], $toks)) { if (is_file(INC_ALBUM_HTML_DIR."/descrizioni/$d.html")) { $t->set_file(array("testo" => INC_ALBUM_HTML_DIR."/descrizioni/$d.html", "testopre" => INC_ALBUM_HTML_DIR."/descrizioni/testopre.html", "testopost" => INC_ALBUM_HTML_DIR.$filetestopost )); } }else{ if (is_file(INC_ALBUM_HTML_DIR."/descrizioni/{$d}_{$toks[1]}.html")) { $t->set_file(array("testo" => INC_ALBUM_HTML_DIR."/descrizioni/{$d}_{$toks[1]}.html", "testopre" => INC_ALBUM_HTML_DIR."/descrizioni/testopre.html", "testopost" => INC_ALBUM_HTML_DIR.$filetestopost )); } } $t->set_var(array("ovt" => $ovtcol)); // 1.4 VALORIZZAZIOBE DELLE VARIABILI $path_dir = $b; $alb = new Album($root."src/web/qnm/bellezze/$b/$d/"); $numf1 = $alb->filenum2($root."src/web/qnm/bellezze/$b/$d"); if($p == "") $p = 1; $pagesinfo = $alb->pagesinfo($p,20); if($pagesinfo != "") $array_page = explode("#", $pagesinfo); $numpages = $array_page[0]; // CONTROLLO FOTO // if (preg_match('/\d\.htm/', $arr_b[2])) { $questa = str_replace('.htm', '', $arr_b[2]); if ($questa > $numpages || $questa == 1) { include($root.'src/web/qnm/bellezze/notfound404.htm'); exit; } } // CONTROLLO FOTO // //PRIMO CICLO $start = $array_page[1]; $stop = $start+ 7; $start2 = $stop+1; $stop2 = $array_page[2]; $to = $stop2+1; $from = $start+1; $foto_title = preg_replace('/^\s-\s/', '', $arr_fotolabel[$p]); if($foto_title == '') $foto_title = 'galleria'; $t->set_var(array("Titolo" => $d, "CURRENT" => $p, "NUMPAGES" => $numpages, "START" => $start, "STOP" => $stop, "BASE" => $b, "DIR" => $d, "XP1" => $b_param, "XP2" => $bnome, "XP21" => strtolower(trim($bnome)), "XP3" => $d, "XP4" => $dnome, "XP41" => trim($dnome), "XP55" => $arr_fotolabel[$p], "XP56" => $foto_title, "DIVLOGGATO"=>$div_loggati, "TAGBANNER"=>$tag_banner, "HISTORY"=>$link_history, "PAGINAHUB"=>$path_hub, "DOMINIO"=>$dom, "LABELLOGO"=>$label_logo, "LOGO"=>$logo, "LINKRSS"=>$link_rss, "HTMLFOOTER"=>$footer, "ANALYTICS"=>$analytics, //"BRAND"=>$style_brand, //"DIVTOP"=>$divtop, // "FULLBANNER"=>$fullbanner, //"REPOSITIONING"=>$repositioning, "DISCLAIMER"=>$disclaimer, "TITOLOPAGINA"=>$titolo_pagina, "SCRIPTFB"=>$script_fb, "SOCIALBOX"=>$socialbox, "METAIE9"=>$meta_ie9, "BANNERSECTION"=>$bannerSection, )); /*** BLOCCO PAGINA START ***/ $prec = $p - 1; $t->set_block("page", "rowA", "rowsA"); if($prec > 0){ if($prec == 1) if($b!='pornostar') $t->set_var(array("PA" => "/bellezze/$b/$d/")); else $t->set_var(array("PA" => "/pornostar/$d/")); else $t->set_var(array("PA" => "$prec.htm")); }else{ $t->set_var(array("rowA" => "")); } $t->parse("rowsA", "rowA", true); if($numpages > 10){ if($p <= 5){ $jstart = 1; }elseif($p >= $numpages-5){ $jstart = $p - 9; }elseif($p < $numpages-5 && $p > 5){ $jstart = $p - 5; }else{ $jstart = $p; } $jstop = $jstart+9; }else{ $jstart = 1; $jstop = $numpages; } /*** BLOCCO PAGINA MID ***/ $t->set_block("page", "row2", "rows2"); for($j=$jstart; $j<=$jstop; $j++){ if($j != $p) if($j < 1) $aaaaaaa = 1; elseif($j == 1) if($b!='pornostar') $sref = "$j  "; else $sref = "$j  "; else $sref = "$j  "; else $sref = "$j  "; if($numpages == 1 ) $sref = "$j  "; $t->set_var(array("PAGG" => $sref)); $t->parse("rows2", "row2", true); } /*** BLOCCO PAGINA STOP ***/ $succ = $p + 1; $t->set_block("page", "rowB", "rowsB"); if($succ <= $numpages){ $t->set_var(array("PI" => "$succ.htm")); }else{ $t->set_var(array("rowB" => "")); } $t->parse("rowsB", "rowB", true); $t->set_block("page", "row", "rows"); $array_img = explode("#", $alb->filelist()); $cicli = sizeof($array_img)-1; $xcount = 0; for($gf=$start; $gf<=$stop; $gf=$gf+4){ // VISUALIZATION SCRIPT preg_match("/\.gif$/", $array_img[$gf]) ? $script = "/cgi-cel/photogif.pl" : $script = "/bv/imgio.php"; preg_match("/\.gif$/", $array_img[$gf+1]) ? $script1 = "/cgi-cel/photogif.pl" : $script1 = "/bv/imgio.php"; preg_match("/\.gif$/", $array_img[$gf+2]) ? $script2 = "/cgi-cel/photogif.pl" : $script2 = "/bv/imgio.php"; preg_match("/\.gif$/", $array_img[$gf+3]) ? $script3 = "/cgi-cel/photogif.pl" : $script3 = "/bv/imgio.php"; $script = $script1 = $script2 = $script3 = "/scripts/timthumb.php"; // VISUALIZATION SCRIPT $gfb = $gf+1; $gfc = $gf+2; $gfd = $gf+3; $imgb = $array_img[$gf+1]; $imgc = $array_img[$gf+2]; $imgd = $array_img[$gf+3]; if(($array_img[$gf] != "") && (!file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$array_img[$gf]"))){ $gf1 = $gf+1; // $linea = "\"$dnome"; $linea = "\"$dnome"; $finea = "$gf1"; }elseif(($array_img[$gf] != "") && (file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$array_img[$gf]"))){ $gf1 = $gf+1; if($b!='pornostar') $linea = "\"$dnome"; else $linea = "\"$dnome"; $finea = "$gf1"; }else{ $finea = " "; $linea = " "; $gf1 = " "; } if(($imgb != "") && (!file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgb"))){ $gf2 = $gf+2; // $lineb = "\"$dnome"; $lineb = "\"$dnome"; $fineb = "$gf2"; }elseif(($imgb != "") && (file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgb"))){ $gf2 = $gf+2; if($b!='pornostar') $lineb = "\"$dnome"; else $lineb = "\"$dnome"; $fineb = "$gf2"; }else{ $gf2 = " "; $lineb = " "; $fineb = " "; } if(($imgc != "") && (!file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgc"))){ $gf3 = $gf+3; $linec = "\"$dnome"; $linec = "\"$dnome"; $finec = "$gf3"; }elseif(($imgc != "") && (file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgc"))){ $gf3 = $gf+3; if($b!='pornostar') $linec = "\"$dnome"; else $linec = "\"$dnome"; $finec = "$gf3"; }else{ $gf3 = " "; $linec = " "; $finec = " "; } if(($imgd != "") && (!file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgd"))){ $gf4 = $gf+4; //$lined = "\"$dnome"; $lined = "\"$dnome"; $fined = "$gf4"; }elseif(($imgd != "") && (file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgd"))){ $gf4 = $gf+4; if($b!='pornostar') $lined = "\"$dnome"; else $lined = "\"$dnome"; $fined = "$gf4"; }else{ $lined = " "; $fined = " "; $gf4 = ""; } $t->set_var(array("LINEA" => $linea, "POSA" => $gf1, "POXA" => "foto/$gf1/", "FINEA" => $finea, "LINEB" => $lineb, "POSB" => $gf2, "POXB" => "foto/$gf2/", "FINEB" => $fineb, "LINEC" => $linec, "POSC" => $gf3, "POXC" => "foto/$gf3/", "FINEC" => $finec, "LINED" => $lined, "POSD" => $gf4, "POXD" => "foto/$gf4/", "FINED" => $fined, )); // 1.5 SOSTITUZIONE E SALVATAGGIO if($array_img[$gf] == "" && $xcount == 0) $t->set_var(array("row" => "")); $t->parse("rows", "row", true); $xcount = 1; } $t->set_block("page", "row1", "rows1"); $xcount = 0; for($gf=$start2; $gf<=$stop2; $gf=$gf+4){ // VISUALIZATION SCRIPT preg_match("/\.gif$/", $array_img[$gf]) ? $script = "/cgi-cel/photogif.pl" : $script = "/bv/imgio.php"; preg_match("/\.gif$/", $array_img[$gf+1]) ? $script1 = "/cgi-cel/photogif.pl" : $script1 = "/bv/imgio.php"; preg_match("/\.gif$/", $array_img[$gf+2]) ? $script2 = "/cgi-cel/photogif.pl" : $script2 = "/bv/imgio.php"; preg_match("/\.gif$/", $array_img[$gf+3]) ? $script3 = "/cgi-cel/photogif.pl" : $script3 = "/bv/imgio.php"; $script = $script1 = $script2 = $script3 = "/scripts/timthumb.php"; // VISUALIZATION SCRIPT $gfb = $gf+1; $gfc = $gf+2; $gfd = $gf+3; $imgb = $array_img[$gf+1]; $imgc = $array_img[$gf+2]; $imgd = $array_img[$gf+3]; if(($array_img[$gf] != "") && (!file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$array_img[$gf]"))){ $gf1 = $gf+1; //$linea = "\"$dnome"; $linea = "\"$dnome"; $finea = "$gf1"; }elseif(($array_img[$gf] != "") && (file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$array_img[$gf]"))){ $gf1 = $gf+1; if($b!='pornostar') $linea = "\"$dnome"; else $linea = "\"$dnome"; $finea = "$gf1"; }else{ $linea = " "; $finea = " "; $gf1 = " "; } if(($imgb != "") && (!file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgb"))){ $gf2 = $gf+2; //$lineb = "\"$dnome"; $lineb = "\"$dnome"; $fineb = "$gf2"; }elseif(($imgb != "") && (file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgb"))){ $gf2 = $gf+2; if($b!='pornostar') $lineb = "\"$dnome"; else $lineb = "\"$dnome"; $fineb = "$gf2"; }else{ $gf2 = " "; $lineb = " "; $fineb = " "; } if(($imgc != "") && (!file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgc"))){ $gf3 = $gf+3; //$linec = "\"$dnome"; $linec = "\"$dnome"; $finec = "$gf3"; }elseif(($imgc != "") && (file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgc"))){ $gf3 = $gf+3; if($b!='pornostar') $linec = "\"$dnome"; else $linec = "\"$dnome"; $finec = "$gf3"; }else{ $gf3 = " "; $linec = " "; $finec = " "; } if(($imgd != "") && (!file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgd"))){ $gf4 = $gf+4; //$lined = "\"$dnome"; $lined = "\"$dnome"; $fined = "$gf4"; }elseif(($imgd != "") && (file_exists($root."src/web/qnm/bellezze/$b/$d/thumbnails/$imgd"))){ $gf4 = $gf+4; if($b!='pornostar') $lined = "\"$dnome"; else $lined = "\"$dnome"; $fined = "$gf4"; }else{ $lined = " "; $fined = " "; $gf4 = ""; } $t->set_var(array("LINEA" => $linea, "POSA" => $gf1, "POXA" => "foto/$gf1/", "FINEA" => $finea, "LINEB" => $lineb, "POSB" => $gf2, "POXB" => "foto/$gf2/", "FINEB" => $fineb, "LINEC" => $linec, "POSC" => $gf3, "POXC" => "foto/$gf3/", "FINEC" => $finec, "LINED" => $lined, "POSD" => $gf4, "POXD" => "foto/$gf4/", "FINED" => $fined, )); // 1.5 SOSTITUZIONE E SALVATAGGIO if($array_img[$gf] == "" && $xcount == 0) $t->set_var(array("row1" => "")); $t->parse("rows1", "row1", true); $xcount = 1; } if($to > $numf1) $to = $numf1; $t->set_var(array("NUMF" => $numf1, "FROM" => $from, "TO" => $to )); $t->pparse("STAMPA", array("testopre", "testo", "testopost","topbanner","bottombanner","dx","dxtopbanner","dxbottombanner","vedianche","piuclick","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 } ?>