window.location = "'.$url.'"; '; echo ''; exit(); } include_once($_SERVER["DOCUMENT_ROOT"]."/component/mobileDetect/Mobile_Detect.php"); $mobileDetect = new Mobile_Detect; $mobileDetectDeviceType = ($mobileDetect->isMobile() ? ($mobileDetect->isTablet() ? 'tablet' : 'phone') : 'computer'); //$scriptVersion = $mobileDetect->getScriptVersion(); //$mobileDetectDeviceType = "phone"; //echo $mobileDetectDeviceType; //inclusione del file contenente la definizione delle variabili per il collegamento al database include_once($_SERVER["DOCUMENT_ROOT"]."/server/base/security/REQUEST-GET-Protection.php"); include_once($_SERVER["DOCUMENT_ROOT"]."/server/connection/MySqlVar.php"); include_once($_SERVER["DOCUMENT_ROOT"]."/server/base/Function.php"); if($webSiteName == "goalAd" || $webSiteName == "ultimiPrezzi") { $LANG = "it"; $typeAliasUrl = getTypeAliasUrl($LANG); //first page trade header("Location: /".$typeAliasUrl.".html"); //redirect exit(); //first page trade } if($mobileDetectDeviceType == "phone" || $webSiteName != "evolveStar") //nel mobile utente mai loggato: home page annunci { if(!isset($_SESSION["IdUser"]) && !isset($_SESSION["IdSession"])) { if(!isset($_GET["profile"]) && !isset($_GET["blog"]) && !isset($_GET["website"]) && !isset($_GET["page"])) { if($webSiteName == "goalAd" || $webSiteName == "ultimiPrezzi") { $LANG = "it"; $typeAliasUrl = getTypeAliasUrl($LANG); //first page trade header("Location: /".$typeAliasUrl.".html"); //redirect exit(); //first page trade } else { //first page trade header("Location: /annunci.html"); //redirect exit(); //first page trade } } } } include_once($_SERVER["DOCUMENT_ROOT"]."/server/connection/Function.php"); include_once($_SERVER["DOCUMENT_ROOT"]."/server/base/Logger.php"); $printEcho = false; mb_internal_encoding("utf-8"); include_once($_SERVER["DOCUMENT_ROOT"]."/server/lingua/base.php"); include_once($_SERVER["DOCUMENT_ROOT"]."/server/base/login/secureLogin.php"); if(!isset($_SESSION["IdUser"]) || !isset($_SESSION["IdSession"]) || !check_login($db_name, $_SESSION["IdUser"], $_SESSION["IdSession"])) { if(!isset($_GET["profile"]) && !isset($_GET["blog"]) && !isset($_GET["website"]) && !isset($_GET["page"])) { if($mobileDetectDeviceType == "phone") //nel mobile utente non loggato: home page annunci { //first page trade header("Location: /annunci.html"); //redirect exit(); //first page trade } else { //first page trade //header("Location: /annunci.html"); //redirect //exit(); //first page trade } //for ie transform ?join in #join $url = "http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; //$fragmnet = parse_url($url, PHP_URL_FRAGMENT); $query = parse_url($url, PHP_URL_QUERY); if($query == null) $query = ""; else $query = "#".$query; //for ie transform ?join in #join $lang = substr($lang, 0, 2); if($lang == 'it' || $lang == 'es' || $lang == 'pt' || $lang == 'fr' || $lang == 'de' || $lang == 'zh' || $lang == 'ja' || $lang == 'ru' || $lang == 'ar' || $lang == 'ko') header("Location: /$lang/login.html".$query); else header("Location: /login.html".$query); //redirect exit(); } $logged = false; $thereIsNews = false; $thereIsNewsEmail = false; } else { $logged = true; $IdUser = $_SESSION["IdUser"]; if(isset($_SESSION["email"])) $email = $_SESSION["email"]; else { $email = null; $logger->error(__FILE__, __LINE__, "SESSION[email] not set for user: ".$IdUser); } if(isset($_GET["IdUser"])) $IdUserReq = $_GET["IdUser"]; else $IdUserReq = $IdUser; if(isset($_SESSION["nome"])) $nomeSession = $_SESSION["nome"]; else $nomeSession = ""; if(isset($_SESSION["cognome"])) $cognomeSession = $_SESSION["cognome"]; else $cognomeSession = ""; if(isset($_SESSION["nomeDArte"])) $nomeDArteSession = $_SESSION["nomeDArte"]; else $nomeDArteSession = "$nomeSession $cognomeSession"; if(isset($_SESSION["avatar"])) $avatarSession = $_SESSION["avatar"]; /* jquery.fileupload-uix.js buildDownloadRow() */ else $avatarSession = "/img/main/profilo/Avatar.gif"; //animazione pulsante news $thereIsNews = false; $db_table = "news"; //ripetere ciclicamente per implementare la notifica $stmt = $dbh->prepare("SELECT count(IdUser) FROM $db_name.$db_table WHERE IdUser= :IdUserReq AND new = 1"); //con count potrei notificare il numero $stmt->bindParam(':IdUserReq', $IdUserReq, PDO::PARAM_INT); $stmSuccess = $stmt->execute(); if($stmSuccess == false) { $arr = $stmt->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } if($stmt->rowCount() != 0) { $row = $stmt->fetch(); $newsCount = $row["count(IdUser)"]; if($newsCount > 0) $thereIsNews = true; //attiva animazione pulsante news else { $thereIsNews = false; //disattiva animazione pulsante news } } //fine - animazione pulsante news //animazione pulsante email $thereIsNewsEmail = false; $db_table = "newsemail"; $stmt = $dbh->prepare("SELECT count(IdUser) FROM $db_name.$db_table WHERE IdUser= :IdUserReq AND new = 1"); $stmt->bindParam(':IdUserReq', $IdUserReq, PDO::PARAM_INT); $stmSuccess = $stmt->execute(); if($stmSuccess == false) { $arr = $stmt->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } if($stmt->rowCount() != 0) { $row = $stmt->fetch(); $newsEmailCount = $row["count(IdUser)"]; if($newsEmailCount > 0) $thereIsNewsEmail = true; //attiva animazione pulsante news else { $thereIsNewsEmail = false; //disattiva animazione pulsante news } } //fine - animazione pulsante email } $HTTP_REFERER = ""; $PHP_URL_PATH = ""; if(isset($_SERVER['HTTP_REFERER'])) { $HTTP_REFERER = $_SERVER['HTTP_REFERER']; //echo $HTTP_REFERER; $PHP_URL_PATH = parse_url($HTTP_REFERER, PHP_URL_PATH); //echo $PHP_URL_PATH; } $REQUEST_URI = $_SERVER['REQUEST_URI']; //url page //echo $REQUEST_URI; $headTitle = ""; if(isset($_GET["profile"])) { $externalAccess = "profile"; $IdUser = $IdUserReq = $_GET["profile"]; if($IdUser != null && $IdUser != "") { $db_table = "utente"; $stmtUtente = $dbh->prepare("SELECT * FROM $db_name.$db_table WHERE IdUser= :IdUser AND utente.status > -1"); $stmtUtente->bindParam(':IdUser', $IdUser, PDO::PARAM_INT); $stmSuccess = $stmtUtente->execute(); if($stmSuccess == false) { $arr = $stmtUtente->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } if($stmtUtente->rowCount() != 0) { $row = $stmtUtente->fetch(); //setto la lingua in base all'utente if($row["lang"] != null && $logged == false) { $lang = $row["lang"]; include($_SERVER["DOCUMENT_ROOT"]."/server/lingua/base.php"); } //setto la lingua in base all'utente $nomeDArte = $row['nomeDArte']; if($nomeDArte == "") $nomeDArte = $row["nome"] . " " . $row["cognome"]; $headTitle = $nomeDArte . " - " . $Profilo; } else //se l'utente è cancellato redirect in home page { header($_SERVER["SERVER_PROTOCOL"]." 410 Gone"); header("Location: /", true, 410); echo ''; echo ''; exit(); } } else { header($_SERVER["SERVER_PROTOCOL"]." 410 Gone"); header("Location: /", true, 410); echo ''; echo ''; exit(); } } else if(isset($_GET["blog"])) { $externalAccess = "blog"; $IdPub = $_GET["blog"]; if($IdPub != null && $IdPub != "") { //recupero IdUser $db_table = "blog"; $stmt = $dbh->prepare("SELECT IdUser, title, descr FROM $db_name.$db_table WHERE IdPub= :IdPub"); //$sql = "SELECT $db_table.IdUser FROM $db_name.$db_table, $db_name.utente WHERE IdPub='$IdPub' AND $db_table.IdUser = utente.IdUser AND status > 0"; $stmt->bindParam(':IdPub', $IdPub, PDO::PARAM_INT); $stmSuccess = $stmt->execute(); if($stmSuccess == false) { $arr = $stmt->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } if($stmt->rowCount() != 0) { $rowBlog = $stmt->fetch(); $IdUser = $IdUserReq = $rowBlog["IdUser"]; //IdUser Recuperato if($IdUser != null && $IdUser != "") { $db_table = "utente"; $stmtUtente = $dbh->prepare("SELECT * FROM $db_name.$db_table WHERE IdUser= :IdUser AND utente.status > -1"); $stmtUtente->bindParam(':IdUser', $IdUser, PDO::PARAM_INT); $stmSuccess = $stmtUtente->execute(); if($stmSuccess == false) { $arr = $stmtUtente->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } if($stmtUtente->rowCount() != 0) { $row = $stmtUtente->fetch(); //setto la lingua in base all'utente if($row["lang"] != null && $logged == false) { $lang = $row["lang"]; include($_SERVER["DOCUMENT_ROOT"]."/server/lingua/base.php"); } //setto la lingua in base all'utente $nomeDArte = $row['nomeDArte']; if($nomeDArte == "") $nomeDArte = $row["nome"] . " " . $row["cognome"];; $headTitle = $nomeDArte . " " . $Blog; if(isset($_GET["canonical"]) && $_GET["canonical"] == "true") { $searchCorrelate = ""; if($rowBlog["title"] != null && $rowBlog["title"] != "") $searchCorrelate = $rowBlog["title"]; if(mb_strlen($searchCorrelate) < 200 && $rowBlog["descr"] != null && $rowBlog["descr"] != "") $searchCorrelate = $searchCorrelate . " " . str_substring($rowBlog["descr"], 0, 200); $url_keyword_utf8 = $searchCorrelate; if($lang == 'zh' || $lang == 'ja') $url_keyword_utf8 = url_keyword_utf8_ideogram($url_keyword_utf8); else $url_keyword_utf8 = url_keyword_utf8($url_keyword_utf8); if(strlen($url_keyword_utf8) > 120) $url_keyword_utf8 = str_substring_real($url_keyword_utf8, 0, 120); //echo mb_strlen($url_keyword_utf8); $url_keyword_utf8_save = $url_keyword_utf8; if($lang == 'zh' || $lang == 'ja') if(mb_strlen($url_keyword_utf8) < 50) $url_keyword_utf8 = ""; //sotto i 50 non va la ricerca if(mb_strlen($url_keyword_utf8_save) < 5) $url_keyword_utf8_save = $IdPub; $extlink = "/blog/" . $IdUser . "/post/" . $IdPub . "/" . $url_keyword_utf8_save . ".html"; } } else //se l'utente è cancellato redirect in home page { header($_SERVER["SERVER_PROTOCOL"]." 410 Gone"); header("Location: /", true, 410); echo ''; echo ''; exit(); } } } else { header($_SERVER["SERVER_PROTOCOL"]." 410 Gone"); header("Location: /", true, 410); echo ''; echo ''; exit(); } //fine - animazione pulsante news } else { header($_SERVER["SERVER_PROTOCOL"]." 410 Gone"); header("Location: /", true, 410); echo ''; echo ''; exit(); } } else if(isset($_GET["website"])) { $urlWebSite = $_GET["website"]; //echo $urlWebSite; if(isset($_GET["post"])) { $externalAccess = "blogwebsite"; $IdPubWebSite = $_GET["post"]; } else { $externalAccess = "website"; $IdPubWebSite = ""; } if(!isset($IdUser)) $IdUser = ""; //echo $urlWebSite; //echo $IdPubWebSite; if($urlWebSite != null && $urlWebSite != "") { $db_table = "website"; $stmtWebSite = $dbh->prepare("SELECT * FROM $db_name.$db_table WHERE url= :urlWebSite AND status > -1"); $stmtWebSite->bindParam(':urlWebSite', $urlWebSite, PDO::PARAM_STR); $stmSuccess = $stmtWebSite->execute(); if($stmSuccess == false) { $arr = $stmtWebSite->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } if($stmtWebSite->rowCount() != 0) { $row = $stmtWebSite->fetch(); $langWebSite = $row["lang"]; //setto la lingua in base al sito if($row["lang"] != null && $row["lang"] != $LANG && $logged == false) { $lang = $row["lang"]; include($_SERVER["DOCUMENT_ROOT"]."/server/lingua/base.php"); } //setto la lingua in base al sito $IdWebSite = $row['IdWebSite']; $nomeDArte = $row['nome']; //echo $IdWebSite; } else //se il website è cancellato redirect in home page { header($_SERVER["SERVER_PROTOCOL"]." 410 Gone"); header("Location: /", true, 410); echo ''; echo ''; exit(); } } else { header($_SERVER["SERVER_PROTOCOL"]." 410 Gone"); header("Location: /", true, 410); echo ''; echo ''; exit(); } if($IdPubWebSite != null && $IdPubWebSite != "") { $db_table = "blogwebsite"; $stmt = $dbh->prepare("SELECT * FROM $db_name.$db_table WHERE $db_table.IdPub = :IdPubWebSite"); $stmt->bindParam(':IdPubWebSite', $IdPubWebSite, PDO::PARAM_INT); $stmSuccess = $stmt->execute(); if($stmSuccess == false) { $arr = $stmt->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } if($stmt->rowCount() != 0) { $row = $stmt->fetch(); //echo $IdWebSite; //echo $row["IdWebSite"]; if($IdWebSite == $row["IdWebSite"]) { $searchCorrelate = ""; if($row["title"] != null && $row["title"] != "") $searchCorrelate = $row["title"]; if(mb_strlen($searchCorrelate) < 200 && $row["descr"] != null && $row["descr"] != "") $searchCorrelate = $searchCorrelate . " " . str_substring($row["descr"], 0, 200); $url_keyword_utf8 = $searchCorrelate; if($langWebSite == 'zh' || $langWebSite == 'ja') $url_keyword_utf8 = url_keyword_utf8_ideogram($url_keyword_utf8); else $url_keyword_utf8 = url_keyword_utf8($url_keyword_utf8); if(strlen($url_keyword_utf8) > 120) $url_keyword_utf8 = str_substring_real($url_keyword_utf8, 0, 120); //echo mb_strlen($url_keyword_utf8); if($langWebSite == 'zh' || $langWebSite == 'ja') if(mb_strlen($url_keyword_utf8) < 40) $url_keyword_utf8 = ""; //sotto i 50 non va la ricerca //echo $url_keyword_utf8; if($url_keyword_utf8 != "") { header($_SERVER["SERVER_PROTOCOL"]." 301 Moved Permanently"); header("Location: /want/$url_keyword_utf8"); //to do //header("Location: /news/$url_keyword_utf8"); exit(); } } else { header($_SERVER["SERVER_PROTOCOL"]." 410 Gone"); header("Location: /website/$urlWebSite", true, 410); echo ''; echo ''; exit(); } } else { if(isset($_GET["str_search"])) //anche se è stato cancellato inoltro alla ricerca { $str_search = $_GET["str_search"]; $str_search = str_replace(".html", "", $str_search); //elimio spazzi ripetuti if(intval($str_search) == false) //non è un numero inoltro alla ricerca { header($_SERVER["SERVER_PROTOCOL"]." 301 Moved Permanently"); header("Location: /search/$str_search"); //to do //header("Location: /news/$str_search"); exit(); } } header($_SERVER["SERVER_PROTOCOL"]." 410 Gone"); header("Location: /website/$urlWebSite", true, 410); echo ''; echo ''; exit(); } } } else if(isset($_GET["page"])) { if(isset($_GET["page"]) && $_GET["page"] == "gamesList") { if(!isset($IdUser)) $IdUser = ""; $externalAccess = "gamesList"; $headerBarSelected = "gamesList"; $str_search = ""; if(isset($_GET["search"]) && $_GET["search"] != "") { $str_search = $_GET["search"]; } } else if(isset($_GET["page"]) && $_GET["page"] == "classificaWebSite") { if(!isset($IdUser)) $IdUser = ""; $externalAccess = "classificaWebSite"; $headerBarSelected = "classificaWebSite"; $str_search = ""; if(isset($_GET["search"]) && $_GET["search"] != "") { $str_search = $_GET["search"]; } } else if(isset($_GET["page"]) && $_GET["page"] == "classificaUser") { if(!isset($IdUser)) $IdUser = ""; $externalAccess = "classificaUser"; $headerBarSelected = "classificaUser"; $str_search = ""; if(isset($_GET["search"]) && $_GET["search"] != "") { $str_search = $_GET["search"]; } } else { $externalAccess = ""; //$logger->warn(__FILE__, __LINE__, "?page non configured HTTP_REFERER: ". $HTTP_REFERER .". REQUEST_URI:". $_SERVER['REQUEST_URI']); header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); header("Location: /", true, 404); echo ''; echo ''; exit(); } } else { $externalAccess = ""; } //paginatore /* if(isset($_GET["page_n"]) && $_GET["page_n"] > 1999) { header($_SERVER["SERVER_PROTOCOL"]." 410 Gone"); } */ //ATTUALMETE NON UTILIZZATO PER LA CLASSIFICAEXTERNAL //echo "externalAccess:" . $externalAccess; if($externalAccess == "blog" || $externalAccess == "blogwebsite" || $externalAccess == "website" || $externalAccess == "profile") { $SET_SERVER_PROTOCOL = true; //echo "externalAccess:" . $externalAccess; if(true) //$externalAccess == "" patch per far vedere dentro il sito { //includiamo il file della classe //@require($_SERVER["DOCUMENT_ROOT"]."/server/base/paginatore.php"); include_once($_SERVER["DOCUMENT_ROOT"]."/server/base/paginatore.php"); //echo "_GET[\"page_n\"]: ".$_GET["page_n"]; // istanziamo la classe per l'impaginazione $paginatore = new Paging; // numero massimo di risultati per pagina $max = 20; // numero massimo link per pagina $maxLink = 10; //numero massimo di pagina: oltre 99 pagine le prestazioni sono pessime $maxPage = 1999; if(!isset($webSiteBlog)) $webSiteBlog = false; // contiamo i records nel database if($externalAccess == "blogwebsite" || $externalAccess == "website") { $stmtPaginatore = $dbh->prepare("SELECT count(IdWebSite) count FROM blogwebsite WHERE blogwebsite.IdWebSite = :IdWebSite"); $stmtPaginatore->bindParam(':IdWebSite', $IdWebSite, PDO::PARAM_INT); } else { $stmtPaginatore = $dbh->prepare("SELECT count(IdUser) count FROM blog WHERE blog.IdUser = :IdUserReq"); $stmtPaginatore->bindParam(':IdUserReq', $IdUserReq, PDO::PARAM_INT); } $stmtPaginatore->execute(); $stmSuccess = $stmtPaginatore->execute(); if($stmSuccess == false) { $arr = $stmt->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } $count = 0; if($stmtPaginatore->rowCount() > 0) { $rowPaginatore = $stmtPaginatore->fetch(); $count = $rowPaginatore["count"]; } //identifichiamo la pagina da cui iniziare la numerazione $inizio = $paginatore->paginaIniziale($count, $max, $maxPage); // troviamo il numero delle pagine che dovrà essere contato $pagine = $paginatore->contaPagine($count, $max, $maxPage); // limitiamo la SELECT al numero di risultati per pagina //$query = @mysql_query("SELECT * FROM classificawebsite LIMIT ".$inizio.",".$max) or die (mysql_error()); $param = ""; if($externalAccess == "") if($externalAccess == "blogwebsite" || $externalAccess == "website") $param = "&IdWebSite=".$IdWebSite; else $param = "&IdUserReq=".$IdUser; //mostriamo le pagine if($externalAccess == "blogwebsite" || $externalAccess == "website") $listaPaginatore = $paginatore->listaPagine($_GET["page_n"], $pagine, $maxLink, $param); else $listaPaginatore = $paginatore->listaPagine($_GET["page_n"], $pagine, $maxLink, $param); //stampo la lista delle pagine //echo "
".$listaPaginatore ."

"; //mostriamo il navigatore Precedente/Successiva //$navigatore = $paginatore->precedenteSuccessiva($_GET["page_n"], $pagine); //echo $navigatore; } } //END + paginatore $page = ""; if(isset($_GET["page_n"]) && $_GET["page_n"] != "1") $page = "page ".$_GET["page_n"]; ?> <?php echo $webSiteName; ?> , , , . " /> prepare("SELECT descr, title, timeStamp FROM $db_name.blog WHERE blog.IdPub = :IdPub"); $stmt->bindParam(':IdPub', $IdPub, PDO::PARAM_INT); $stmSuccess = $stmt->execute(); if($stmSuccess == false) { $arr = $stmt->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } if($stmt->rowCount() != 0) { $row = $stmt->fetch(); $length = 2; $lengthTotal = 200; $order = array("\r\n", "\n", "\r"); $replace = " "; $title = $row["title"]; $title = str_replace($order, $replace, $title); $title = str_replace(" ", " ", $title); //elimio spazzi ripetuti $title = str_replace(" ", " ", $title); //elimio spazzi ripetuti $title = str_replace(" ", " ", $title); //elimio spazzi ripetuti $title = trim($title); if($title != "") { if(strlen($title) > $lengthTotal) $title = substr($title, 0, $lengthTotal); //$description .= $title . "; "; $arraykeywords = preg_split('/ /', $title, -1); //-1 no limit for($j = 0; $j < count($arraykeywords); $j++) { if(strlen($arraykeywords[$j]) > $length) $keywords .= str_replace(",","",$arraykeywords[$j]) . ", "; //evito virgole doppie } } $descr = $row["descr"]; $descr = str_replace($order, $replace, $descr); if($descr != "") { if(mb_strlen($descr) > $lengthTotal) $descr = mb_substr($descr, 0, $lengthTotal); $description .= $descr . " "; $arraykeywords = preg_split('/ /', $descr, -1); //-1 no limit for($j = 0; $j < count($arraykeywords); $j++) { if(mb_strlen($arraykeywords[$j]) > $length) $keywords .= str_replace(",","",$arraykeywords[$j]) . ", "; //evito virgole doppie } } $timeStamp = ""; if($row["timeStamp"] != "") { $timeStamp = $row["timeStamp"]; } //echo $description; $order = array(".", ";", "!", '"'); $replace = ""; $keywords = str_replace($order, $replace, $keywords); $order = array('"'); $replace = ""; $description = str_replace($order, $replace, $description); for($j = 0; $j < 4; $j++) $description = str_replace(" ", "", $description); //elimio spazzi ripetuti ?> <?php if($title != "") echo $title . " - "; ?><?php if(mb_strlen($title) < 30 && $description != "") echo mb_substr($description, 0, 100) . " - "; ?><?php echo $headTitle; ?> - <?php echo "Post " . $IdPub; ?> - <?php echo $webSiteName; ?> prepare("SELECT * FROM $db_name.$db_table WHERE IdUser= :IdUserReq"); $stmtUtente->bindParam(':IdUserReq', $IdUserReq, PDO::PARAM_INT); $stmSuccess = $stmtUtente->execute(); if($stmSuccess == false) { $arr = $stmtUtente->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } $db_table = "profilo"; $stmtProfilo = $dbh->prepare("SELECT * FROM $db_name.$db_table WHERE IdUser= :IdUserReq"); $stmtProfilo->bindParam(':IdUserReq', $IdUserReq, PDO::PARAM_INT); $stmSuccess = $stmtProfilo->execute(); if($stmSuccess == false) { $arr = $stmtProfilo->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } $db_table = "lavoro"; $stmtLavoro = $dbh->prepare("SELECT * FROM $db_name.$db_table WHERE IdUser= :IdUserReq"); $stmtLavoro->bindParam(':IdUserReq', $IdUserReq, PDO::PARAM_INT); $stmSuccess = $stmtLavoro->execute(); if($stmSuccess == false) { $arr = $stmtLavoro->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } $db_table = "relazione"; $stmtRelazione = $dbh->prepare("SELECT * FROM $db_name.$db_table WHERE IdUser= :IdUserReq"); $stmtRelazione->bindParam(':IdUserReq', $IdUserReq, PDO::PARAM_INT); $stmSuccess = $stmtRelazione->execute(); if($stmSuccess == false) { $arr = $stmtRelazione->errorInfo(); $logger->error(__FILE__, __LINE__, $arr[2]); } if($stmtUtente->rowCount() != 0) { $rowUtente = $stmtUtente->fetch(); /* if($rowUtente["lang"] != null) { $lang = $rowUtente["lang"]; include($_SERVER["DOCUMENT_ROOT"]."/server/lingua/base.php"); } */ } if($stmtProfilo->rowCount() != 0) { $rowProfilo = $stmtProfilo->fetch(); if($rowUtente["nome"] != "") { $keywords .= $rowUtente["nome"]; } if($rowUtente["cognome"] != "") { $keywords .= ", " . $rowUtente["cognome"]; } if($rowUtente["nome"] != "" && $rowUtente["cognome"] != "") { $keywords .= ", " . $rowUtente["nome"] . " " . $rowUtente["cognome"]; } if($rowUtente["sesso"] != "") { $keywords .= ", " . $$rowUtente["sesso"]; $description .= $$rowUtente["sesso"]; } if($rowProfilo["dataNascita"] != "") { $keywords .= ", " . mb_strtolower($NatoIl) . " " . $rowProfilo["dataNascita"]; $description .= ", " . mb_strtolower($NatoIl) . " " . $rowProfilo["dataNascita"]; } if($rowProfilo["cittaNascita"] != "") { $keywords .= ", " . $rowProfilo["cittaNascita"]; $description .= " $a " . $rowProfilo["cittaNascita"]; } if($rowProfilo["cittaVita"] != "") { $keywords .= ", " . mb_strtolower($ViveA) . " " . $rowProfilo["cittaVita"]; $description .= ", " . mb_strtolower($ViveA) . " " . $rowProfilo["cittaVita"]; } } if($stmtLavoro->rowCount() != 0) { $rowLavoro = $stmtLavoro->fetch(); if($rowLavoro["situazioneLavorativaAttuale"] != "") { $keywords .= ", " . $$rowLavoro["situazioneLavorativaAttuale"]; $description .= ", " . $$rowLavoro["situazioneLavorativaAttuale"]; } if($rowLavoro["situazioneLavorativaAttuale"] != "" && $rowLavoro["nomeAzienda"] != "" ) { $keywords .= ", " . $rowLavoro["nomeAzienda"]; $description .= " $presso " . $rowLavoro["nomeAzienda"]; } if($rowLavoro["situazioneLavorativaAttuale"] != "" && $rowLavoro["nomeAzienda"] != "" && $rowLavoro["situazioneLavorativaAttualeDal"] != "") $description .= " " . mb_strtolower($Dal) . " " . $rowLavoro["situazioneLavorativaAttualeDal"]; } if($stmtRelazione->rowCount() != 0) { $rowRelazione = $stmtRelazione->fetch(); if($rowRelazione["situazioneSentimentale"] != "") { $keywords .= ", " . $$rowRelazione["situazioneSentimentale"]; $description .= ", " . $$rowRelazione["situazioneSentimentale"]; } if($rowRelazione["situazioneSentimentale"] != "" && $rowRelazione["situazioneSentimentaleNome"] != "") { $keywords .= ", " . $rowRelazione["situazioneSentimentaleNome"]; $description .= " " . mb_strtolower($Con) . " " . $rowRelazione["situazioneSentimentaleNome"]; } if($rowRelazione["situazioneSentimentale"] != "" && $rowRelazione["situazioneSentimentaleNome"] != "" && $rowRelazione["situazioneSentimentaleDal"] != "") $description .= " " . mb_strtolower($Dal) . " " . $rowRelazione["situazioneSentimentaleDal"]; } if($stmtProfilo->rowCount() != 0) { if($rowProfilo["sitoWeb"] != "") { $keywords .= ", $SitoWeb: " . $rowProfilo["sitoWeb"]; $description .= ", $SitoWeb: " . $rowProfilo["sitoWeb"]; } } ?> <?php echo $headTitle; ?> - <?php echo $webSiteName; ?><?php if($page!="") echo " - ".$page; ?> " /> <?php if($nomeDArte != "") echo $nomeDArte." - "; ?><?php echo $urlWebSite; ?> - <?php echo $webSiteName; ?><?php if($page!="") echo " - ".$page; ?> " /> $lengthTotal) $title = mb_substr($title, 0, $lengthTotal); //$description .= $title . "; "; $arraykeywords = preg_split('/ /', $title, -1); //-1 no limit for($j = 0; $j < count($arraykeywords); $j++) { if(mb_strlen($arraykeywords[$j]) > $length) $keywords .= str_replace(",","",$arraykeywords[$j]) . ", "; //evito virgole doppie } } $descr = $row["descr"]; $descr = str_replace($order, $replace, $descr); if($descr != "") { if(mb_strlen($descr) > $lengthTotal) $descr = mb_substr($descr, 0, $lengthTotal); $description .= $descr . " "; $arraykeywords = preg_split('/ /', $descr, -1); //-1 no limit for($j = 0; $j < count($arraykeywords); $j++) { if(mb_strlen($arraykeywords[$j]) > $length) $keywords .= str_replace(",","",$arraykeywords[$j]) . ", "; //evito virgole doppie } } $timeStamp = ""; if($row["timeStamp"] != "") { $timeStamp = $row["timeStamp"]; } //echo $description; $order = array(".", ";", "!", '"'); $replace = ""; $keywords = str_replace($order, $replace, $keywords); $order = array('"'); $replace = ""; $description = str_replace($order, $replace, $description); for($j = 0; $j < 4; $j++) $description = str_replace(" ", "", $description); //elimio spazzi ripetuti ?> <?php if($title != "") echo $title . " - "; ?><?php if(mb_strlen($title) < 30 && $description != "") echo mb_substr($description, 0, 100) . " - "; ?><?php echo $urlWebSite; ?> - <?php echo "Post " . $IdPubWebSite; ?> - <?php echo $webSiteName; ?> <?php echo $Giochi; ?> <?php echo $webSiteName; ?>: <?php echo translate("Miglior giochi online gratis"); ?>, <?php echo translate("flash e html browser game"); ?> , , , , , , , , , , " /> . . . " /> <?php echo $Classifica; ?> <?php echo $SitiWeb; ?> <?php echo $webSiteName; ?><?php if($page!="") echo " - ".$page; ?> . ." /> <?php echo $Classifica; ?> <?php echo $webSiteName; ?><?php if($page!="") echo " - ".$page; ?> . ." /> 1) { ?> ?> ?> evolveStar è un social blog basato su un sistema di consensi che permette di acquisire popolarità, aumentando la visibilità delle tue pubblicazioni. In evolveStar sei tu a scegliere cosa ti piace e non, chi sono gli amici, i nemici, i fans ed i conoscenti.
*/ ?>
loading...
">
*/?>
*/?>
>
> ".$ClassificaDeiSitiWebPiuVotati.""; } else if($externalAccess == "classificaUser") { echo "

".translate("Classifica degli utenti più votati")."

"; } ?>









$(function() { jqueryLoad("#ColonnaSX","/indexColonnaSX.php"); //spostato nel js sotto il body }); */ ?>







: ?> ?>


+150 +1500

Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.
?>


Stars Book

.html" onclick="javascript: jqueryRefreshProfile(''); jqueryLoad('#Body','classificaExternal.php'); accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" > 2014
onclick="javascript: jqueryRefreshProfile(''); jqueryLoad('#Body','classificaExternal.php?archive=2013winter'); accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" > 2013
onclick="javascript: jqueryRefreshProfile(''); jqueryLoad('#Body','classificaExternal.php?archive=2013autumn'); accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" > 2013
onclick="javascript: jqueryRefreshProfile(''); jqueryLoad('#Body','classificaExternal.php?archive=2013summer'); accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" > 2013
onclick="javascript: jqueryRefreshProfile(''); jqueryLoad('#Body','classificaExternal.php?archive=2013spring'); accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" > 2013
onclick="javascript: jqueryRefreshProfile(''); jqueryLoad('#Body','classificaExternal.php?archive=2012winter'); accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" > 2012
onclick="javascript: jqueryRefreshProfile(''); jqueryLoad('#Body','classificaExternal.php?archive=2012autumn'); accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" > 2012
onclick="javascript: jqueryRefreshProfile(''); jqueryLoad('#Body','classificaExternal.php?archive=2012summer'); accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" > 2012
onclick="javascript: jqueryRefreshProfile(''); jqueryLoad('#Body','classificaExternal.php?archive=2012spring'); accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" > 2012


?>


4000



'); jqueryLoad('#Body','/doc/guide/info.php'); accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" >Info Base */ ?> " onclick="javascript: jqueryRefreshProfile(''); jqueryLoad('#Body','/doc/guide/punteggio-.php'); location.hash = 'doc'; accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" > &
" onclick="javascript: jqueryRefreshProfile(''); jqueryLoad('#Body','/doc/guide/pubblicazioni.php'); location.hash = 'doc'; accordionDisableActive('.accordionContact'); accordionDisableActive('.accordionOpzioni'); return false;" > &










?>









Select your new theme: */ ?> ?> ?> ?> ?>

© 2010-2018 Fabrizio Fichera

?> ?>
dialogShowMessage!