= '5.0.0' && (!@ini_get('register_long_arrays') || @ini_get('register_long_arrays') == '0' || strtolower(@ini_get('register_long_arrays')) == 'off')) { $HTTP_POST_VARS = $_POST; $HTTP_GET_VARS = $_GET; $HTTP_SERVER_VARS = $_SERVER; $HTTP_COOKIE_VARS = $_COOKIE; $HTTP_ENV_VARS = $_ENV; $HTTP_POST_FILES = $_FILES; // _SESSION is the only superglobal which is conditionally set if (isset($_SESSION)) { $HTTP_SESSION_VARS = $_SESSION; } } global $mod,$dz,$op; require_once("include/function.php"); $op=getpost('op'); $dz=getpost('dz'); $mod=getpost('mod'); $param_dzx=getpost('dz'); require_once("GWPE.php"); /* //tylko w mod.php //---cache start if ($GO_CONFIG->chache_page_php_on){ include_once ('classes/gwpe.class.CACHE.inc'); $file_cache_index=new cache(); $file_cache_index->start_cache(); } //---cahce end */ header('Content-type: text/html; charset='.$GO_CONFIG->dz_codepage); //header('Content-type: text/html; charset=utf-8'); //header('Content-type: text/html; charset=iso-8859-1'); //---------------statystyka dowolnych linków if (getpost('tcu') AND getpost('url')){ $ipclient=get_clientip(); if ($ipclient) $ipclient=" '".addslashes($ipclient)."' "; else $ipclient=" NULL "; $rurl=urldecode(getpost('url')); if (strtolower(substr($rurl, 0, 7))!="http://" AND strtolower(substr($rurl, 0, 8))!="https://"){ $rurl="http://".$rurl; } $sql="INSERT INTO ".$GO_CONFIG->dbprefix."stat_external_click ( mark_key,from_ip,referer_full,data_add )VALUES( '".addslashes(getpost('tcu'))."',".$ipclient.",'".addslashes($rurl)."',NOW() )"; $db->sql_query($sql); header("Location: ".$rurl); exit; //---------------statystyka linków zewnętrznych start }else if (getpost('sclick')){ $ipclient=get_clientip(); if ($ipclient) $ipclient=" '".addslashes($ipclient)."' "; else $ipclient=" NULL "; $referer=$_SERVER['HTTP_REFERER']; $sql="INSERT INTO ".$GO_CONFIG->dbprefix."stat_external_click ( mark_key,from_ip,data_add,referer_full )VALUES( '".addslashes(getpost('sclick'))."',".$ipclient.",NOW(),'".addslashes($referer)."' )"; $db->sql_query($sql); if (getpost('dz')){ header("Location: http://".$_SERVER['SERVER_NAME']."/?dz=".getpost('dz')); }else{ header("Location: http://".$_SERVER['SERVER_NAME']); } exit; } //---------------statystyka linków zewnętrznych end //echo timestamp2date("1200898388","-",1)."ddd"; //echo timestamp2date("1200898996","-",1);exit; //echo img("ico/LOGOs/webplus.gif"); //====================================================================== //-------------------------------------------------------------------GET XML sitemap: http://www.acms.a6.pl/?sitemap=NUMER_GLOWNEGO_DZIALU&csCommerce=NUMER_DZIALU_ZE_SKLEPEM&Auc=DZIAL_Z_AUCTION_MODULE //http://www.acms.a6.pl/?sitemap=3&csCommerce=3 //http://www.acms.a6.pl/?sitemap=31&csCommerce=31&Auc=83 if (getpost('sitemapt')){ //INFO WYWOLANIE // index.php?sitemapt=auction&News=NUMER_DZIALU_Z_MODULEM_NEWS&csCommerce=NUMER_DXIALU_Z_MODULEM_csCommerce&Auc=NUMER_DZIAU_Z_MODULEM_AUKCJI // index.php?sitemapt=shop&News=NUMER_DZIALU_Z_MODULEM_NEWS&csCommerce=NUMER_DXIALU_Z_MODULEM_csCommerce&Auc=NUMER_DZIAU_Z_MODULEM_AUKCJI makeSitemapGoogle(getpost('sitemapt'),"view","",get_servername(),getpost('News'),getpost('csCommerce'),getpost('Auc')); }else if (getpost('sitemap')){ //poprawnie generuje mape dla google //if (is_sadmin()){ // $path=str_code("SYSTEM/"); // $link="mg=photoalbum&mp=".$path."&imt=exe&thb="; // $imgx="mod.php?op=getfile&img=".str_replace("=","#",str_code($link)); //echo $imgx; //get_servername // makeSitemapGoogle("all","file","","www.skleptav.pl",5); //INFO WYWOLANIE // index.php?sitemap=1&News=NUMER_DZIALU_Z_MODULEM_NEWS&csCommerce=NUMER_DXIALU_Z_MODULEM_csCommerce&Auc=NUMER_DZIAU_Z_MODULEM_AUKCJI makeSitemapGoogle("all","view","",get_servername(),getpost('News'),getpost('csCommerce'),getpost('Auc')); //====================================================================== //-------------------------------------------------------------------GET XML from /include/XML_EXPORT/exporter.php --- np. zakupy onet: http://acms.a6.pl/?getxml=onet&op=export }else if (getpost('getxml')){ include("include/XML_EXPORTS/exporter.php"); //====================================================================== //-------------------------------------------------------------------dla A6 SYSTEM (pliku exe) }else if ((getpost('action')=="a6sys" OR getpost('action')=="a6sys_web") AND getpost('ac')=="0609994994"){ include("include/A6System.php"); //====================================================================== //-------------------------------------------------------------------make PDF for page }else if (getpost('op')=="mkpdf" AND getpost('pid')<>""){ // echo PrintPage(getpost(mid),'mod'); // showPDF(PrintPage(getpost(pid),'pg')); if (getpost(ss)==$GO_CONFIG->get_sesid()){ PrintPagePDF(getpost('pid'),'pg'); }else echo error(); //-------------------------------------------------------------------uniwersalny Ajax dla systemy - nizej rtakze jest mozliwosc tego wywolania }else if (getpost('ax')=="true"){ include("Ajax/Ajax.php"); //-------------------------------------------------------------------uniwersalny Ajax dla modulow }else if (getpost('action')=="Ajax"){ //echo getpost('mod')."============".$_GET[ss]."==".$_POST[ss]."==".$GO_CONFIG->get_sesid();exit; //echo getpost('mod')."============".getpost('sys');exit; if (getpost('mod')){ $modajax="modules/".str_replace("..","xx",getpost('mod'))."/Ajax/"; if (is_dir($modajax)){ define("_PERM_".getpost('mod'),"1"); include($modajax."Ajax.php"); }else echo error(_NOACCES); }else if (getpost('sys')){ include("Ajax/Ajax.php"); }else echo error(_NOACCES); //-------------------------------------------------------------------uniwersalny (cos jak Ajax) dla modulow NIE WYMAGA NUMERU SESJJJ!! nie zbyt bezpieczny //----------------z katalogu modulu odpalam plik NoSS.php }else if (getpost('noss')){ // if (getpost('m')){ $modajax="modules/".str_replace("..","xx",getpost('noss'))."/"; if (is_dir($modajax)){ if (is_file($modajax."NoSS.php")){ define("_PERM_".getpost('noss'),"1"); include($modajax."NoSS.php"); }else{ echo error(_NOACCES); } }else echo error(_NOACCES); // }else echo error(_NOACCES); //====================================================================== //-------------------------------------------------------------------3D Chat - Ajax }else if (getpost('action')=="3dchat"){ define("_PERM_3D_Chat","1"); // if ($_GET[op]=="game" OR $_GET[op]=="games"){ // include("modules/3D_City/Games/score.php"); // }else{ include("modules/3D_Chat/rooms.php"); // } //====================================================================== //-------------------------------------------------------------------3D CITY - Ajax }else if (getpost('action')=="3dcity"){ define("_PERM_3D_City","1"); if ($_GET[op]=="game" OR $_GET[op]=="games"){ include("modules/3D_City/Games/score.php"); }else{ include("modules/3D_City/Ajax/Ajax.php"); } // }else echo error(_NOACCES); //====================================================================== //-------------------------------------------------------------------KLASA - Ajax }else if (getpost('action')=="KLAS"){ if (getpost(ss)==$GO_CONFIG->get_sesid()){ define("_PERM_Klasa","1"); include("modules/Klasa/Ajax/Ajax.php"); }else echo error(_NOACCES); //====================================================================== //-------------------------------------------------------------------Poczta - Read message }else if (getpost('action')=="Pmsg"){ if (getpost(ss)==$GO_CONFIG->get_sesid() AND (getpost('msg')>0 OR (!getpost('msg') AND getpost('mnew')=="new") OR (!getpost('msg') AND getpost('mnew')=="toclass"))){ define("_PERM_Poczta","1"); include("modules/Poczta/Ajax/read_msg.php"); //echo ""; echo $fret; }else echo error(_NOACCES); //====================================================================== //-------------------------------------------------------------------GFX - YorAccount }else if (getpost('action')=="gfx"){ if (getpost(ss)) { session_id(getpost(ss)); session_start(); session_register('autorizecode'); } $newauthcode=makeID(5); $_SESSION['autorizecode']=$newauthcode; $autorizecode=$newauthcode; require_once ('classes/class.captcha_x.php'); $server = &new captcha_x (); $server->handle_request ($_SESSION[autorizecode]); //logg($newauthcode."==".getpost(ss)."==".session_id()); //====================================================================== //-------------------------------------------------------------------YA - YorAccount }else if (getpost('action')=="YA"){ if (is_user()) define("_INSED_YA","1"); include_once("include/EXTERNAL_INDEX/YOURACCOUNT.php"); //====================================================================== //-------------------------------------------------------------------PG }else if ($_GET['action']=="PG"){ //logg('','gp'); if (is_user()) define("_INSED_PG","1"); include_once("include/EXTERNAL_INDEX/PG.php"); //-------------------------------------------------------------------Facebook }else if (getpost('action')=="FB" || getpost('ac')=="FB"){ //logg('','gp'); //echo "dd"; include_once("include/FaceBook_add.php"); //====================================================================== //-------------------------------------------------------------------DIG }else if ($_GET['action']=="DIG" OR $_GET['action']=="Dv" OR $_GET['action']=="Dvu" OR $_GET['action']=="DvIn"){ // if (getpost(ss)){ // session_id(getpost(ss)); // session_start(); // } //echo $_SESSION[autorizecode]; //logg($GO_CONFIG->,'gp'); //logg("aa".$_SESSION[autorizecode],'gp'); define("_INSED_Dv","1"); include_once("include/EXTERNAL_INDEX/DIG.php"); }else if ($_GET['action']=="dfl"){ if (is_user()) define("_INSED_dlf","1"); include_once("include/EXTERNAL_INDEX/DIG_TOOLBAR.php"); //====================================================================== //--------------------------------------------------------ANONSE AKTYWACJA }else if ($_GET['activeads']){ if ($_GET['em']){ $sql="SELECT * FROM ".$GO_CONFIG->dbprefix."Ads WHERE k_email='".addslashes($_GET['em'])."' AND activate='".addslashes($_GET['activeads'])."' AND active='0' LIMIT 1"; $result = $db->sql_query($sql); $row=$db->sql_fetchrow($result); if ($row[id]>0){ $sql="UPDATE ".$GO_CONFIG->dbprefix."Ads SET fromip='".addslashes(get_userip())."', active='1', activate=NULL WHERE active='0' AND id='".$row['id']."' limit 1"; $db->sql_query($sql); $sql="UPDATE ".$GO_CONFIG->dbprefix."Ads_cat SET counter=counter+1 WHERE aid='".$row['catid']."' limit 1"; $db->sql_query($sql); echo _AVTVATEDADS."... OK
"; echo ""._BACK.""; }else echo "ERROR... "._NOITEMS; }else echo "ERROR... "._NOITEMS; //====================================================================== //--------------------------------------------------------ANONSE CZARNA LISTA }else if ($_GET['blockads']){ if ($_GET['em']){ $sql="SELECT * FROM ".$GO_CONFIG->dbprefix."Ads WHERE k_email='".addslashes($_GET['em'])."' AND activate='".addslashes($_GET['blockads'])."' LIMIT 1"; $result = $db->sql_query($sql); if ($db->sql_numrows($result)>0){ $sql="INSERT INTO ".$GO_CONFIG->dbprefix."Ads_blacklist ( email,`data` )VALUES( '".addslashes($_GET['em'])."','".addslashes(gdate('sql'))."' )"; $db->sql_query($sql); echo _BLOCKEDEMAIL.": ".$_GET['em']."... OK
"; $sql="SELECT * FROM ".$GO_CONFIG->dbprefix."Ads WHERE k_email='".addslashes($_GET['em'])."' AND active='0' "; $resultd = $db->sql_query($sql); while($rowd = $db->sql_fetchrow($resultd)) { $sql="DELETE FROM ".$GO_CONFIG->dbprefix."Ads WHERE id='".$rowd['id']."' LIMIT 1"; $db->sql_query($sql); // $sql="UPDATE ".$GO_CONFIG->dbprefix."Ads_cat SET counter=counter-1 WHERE aid='".$rowd[catid]."' limit 1"; // $db->sql_query($sql); } echo _DELETEDADS.": ".$_GET['em']."... OK
"; echo ""._BACK.""; }else echo "ERROR... "._NOITEMS; }else echo "ERROR... "._NOITEMS; //====================================================================== //--------------------------------------------------------RSS: ANONSE }else if ($_GET['showrss']){ if (strtolower($_GET['showrss'])=="ads"){ require_once("classes/gwpe.class.RSS.inc"); $rss=new RSSWriter("http://www.dzielnica.pl/", "Anonse - Polski Portal Regionalny", "Anonse", array("publisher" => "www.dzielnica.pl", "creator" => "dzielnica.pl")); $rss->setImage("http://www.a6.pl/images/logo-dzielnica.jpg", "Polski Portal Regionalny: Wiadomosci"); // $rss->addItem("http://a6.pl", "okok"); $sql="SELECT id,catid,title,content FROM ".$GO_CONFIG->dbprefix."Ads WHERE active='1' ORDER BY startdate DESC limit 20"; $result = $db->sql_query($sql); while($row = $db->sql_fetchrow($result)) { $qtitle2 = clear_txt(stripslashes($row['title'])); $tresc2 = clear_txt(substr($row['content'],0,100)); $rss->addItem("http://www.a6.pl/mod.php?dz=4&mod=Ads&op=inz&cid=".$row[catid]."&scid=&aid=".$row[id], "$qtitle2", array("description" => "$tresc2", "subject" => "Anonse", "creator" => "Polski Portal Regionalny www.dzielnica.pl")); } $rss->serialize(); //====================================================================== //--------------------------------------------------------RSS: ANONSE }else if (strtolower($_GET['showrss'])=="news"){ require_once("classes/gwpe.class.RSS.inc"); $rss=new RSSWriter("http://www.dzielnica.pl/", "Anonse - Polski Portal Regionalny", "Wiadomo.ci", array("publisher" => "www.dzielnica.pl", "creator" => "dzielnica.pl ")); $rss->setImage("http://www.a6.pl/images/logo-dzielnica.jpg", "Polski Portal Regionalny: Wiadomosci"); // $rss->addItem("http://a6.pl", "okok"); $sql="SELECT `sid`,title,bodytext FROM ".$GO_CONFIG->dbprefix."stories WHERE active='1' ORDER BY startdate DESC limit 20"; $result = $db->sql_query($sql); while($row = $db->sql_fetchrow($result)) { $qtitle2 = clear_txt(stripslashes($row[title])); $tresc2 = substr(clear_txt(stripslashes($row[bodytext])),0,250); $rss->addItem("http://www.a6.pl/mod.php?dz=5&mod=News&off_right=off&op=show&art=".$row['sid'], "$qtitle2", array("description" => "$tresc2", "subject" => "Anonse", "creator" => "Polski Portal Regionalny www.dzielnica.pl")); } $rss->serialize(); }else echo error(_ERROR); //====================================================================== //--------------------------------------------------------login short Ajax }else if (getpost(action)=="loginsh"){ include("form/login_short.php"); //====================================================================== //--------------------------------------------------------login }else if ($_SERVER["QUERY_STRING"]=="login"){ define("USER","1"); $_GET[action]="login"; include("stopki/index_header.php"); $login_wh="700px"; define("I_INDEXPHP",1); include("form/login.php"); include("stopki/index_bottom.php"); }else if ($_SERVER["QUERY_STRING"]=="adm"){ $httpx=secure_url("adm"); if ($httpx) redirect($httpx); define("ADMIN","1"); $_GET[action]="login"; include("stopki/index_header.php"); $login_wh="700px"; define("I_INDEXPHP",1); include("form/login.php"); include("stopki/index_bottom.php"); //-----------------------------------------------------------------odpalam plik z modules/ANZWA_MODULU/index_in.php }else if (($_GET['i']=="mod" OR $_POST['i']=="mod") AND (($_GET['mod'] AND is_file("modules/".$_GET['mod']."/index_in.php")) OR ($_POST['mod'] AND is_file("modules/".$_POST['mod']."/index_in.php")))){ //-----------wywoluje tak jak ajax-a lecz plik z modules/nazwa_modulu/index_in.php if ($_GET['mod']){ $_GET['mod']=str_replace(".","",$_GET['mod']); include("modules/".$_GET['mod']."/index_in.php"); }else{ $_POST['mod']=str_replace(".","",$_POST['mod']); include("modules/".$_POST['mod']."/index_in.php"); } }else if (!$param_dzx AND $GO_CONFIG->startpage AND $GO_CONFIG->startpage_pgid){ include("stopki/index_header.php"); if (is_moderator()){ echo ""; echo ""; echo "
"; echo " "; echo ""; echo img("ico/back_n.gif",_NEXT); echo ""; echo " "; echo "startpage_pgid."&ss=".$GO_CONFIG->get_sesid()."&retp=".str_code("index.php")."')>"; echo img("ico/edit3.gif",_EDITPAGE); echo " "; echo "
"; } $sql = "SELECT * FROM ".$GO_CONFIG->dbprefix."pages WHERE id='".$GO_CONFIG->startpage_pgid."' limit 1"; $result = $db->sql_query($sql); $row=$db->sql_fetchrow($result); if ($GO_CONFIG->programing==1) echo translate(stripslashes($row['content']),$row['isphp']); else echo stripslashes($row['content']); //----------modul if ($row['mod_active'] AND $row['mod_name'] AND is_modactive($row['mod_name'])){ unset($modparam); $mod_param=""; if ($row['mod_param']){ $x=explode(";", $row['mod_param']); $q=0; while($x[$q]){ list($p1,$p2)=split("=", $x[$q]); $mod_param .= "&".$p1."=".$p2; $modparam[$p1]=$p2; $q++; } } $GO_CONFIG->read_module_config($row['mod_name']); if ($GO_CONFIG->support_phpnuke) { define('MODULE_FILE',$row['mod_name']); if ($file) include("modules/$row[mod_name]/$file.php"); else include("modules/$row[mod_name]/index.php"); }else{ include("modules/$row[mod_name]/index.php"); } } if ($GO_CONFIG->statystyka) makestat($_SERVER,0); include("stopki/index_bottom.php"); //---------------------search dla wyszukiwarki //przeniesione do mod.php i includowane z include/search_from_query.php //}else if ($_GET['query'] OR $_GET['q']){//----------------------------------query start dla google tagów //przeniesione do mod.php i includowane z include/search_from_query.php }else if ($_GET['query']){ if ($_GET['query']){ $q=$_GET['query']; // }else{ // $q=$_GET['q']; } // include("stopki/index_header.php"); ?> <? echo $q;?> " > "; $citys=array("Gdańsk","Gdynia","Sopot","Warszawa","Lębork","Kartuzy","Biała Podlaska","Białystok","Bielsko-Biała","Bydgoszcz", "Chełm","Ciechanów","Częstochowa","Elbląg", "Gorzów Wielkopolski","Jelenia Góra","Zielona Góra","Piotrków","Wałbrzych","Włoclawek","Wroclaw","Zamość"); $citys_add_size=count($citys); $words_x=array("Sklepy Internetowe","Sklepy Komputewrowe","Sklep komputerowy","sklep internetowey","sklep spęt AGD", "sklep sprzęt RTV","telewizory LED","telewizory LCD","telewizory 3D", "telewizory plazmmowe","lodówki","pralki","lodówka","pralka", "zmywarki","zmywarka","okapy agd","laptopy","notebooki","komputery","zestawy komputerowe","pasaż sklepy"); $words_x_size=count($words_x); $city=$citys[rand(0,$citys_add_size)]; $word=$words_x[rand(0,$words_x_size)]; $qtab=str_replace(" ","_",$q); $qtab=split("_",$qtab); $q=str_replace("_"," ",$q); $tagLink="http://".$_SERVER["SERVER_NAME"]; echo ""; echo "

<< "._BACK." ".$word.": ".$_SERVER["SERVER_NAME"].", ".$q." ".$city."

"; echo "
"; echo "

"; $sql_add_a =""; $sql_add_b =""; $sql_add =""; for($i=0;$idbprefix."pages WHERE active='1' AND content LIKE '%".addslashes($q)."%' limit 50"; // $sql = "SELECT * FROM ".$GO_CONFIG->dbprefix."pages WHERE active='1' AND name!='' AND name!=' ' AND content!='' AND content!=' ' ".$sql_add." limit 50"; $is_mod_auction=is_modactive("Auction"); $is_mod_csCommerce=is_modactive("csCommerce"); $result=""; $nums=0; include_once ("classes/gwpe.class.html2text.inc"); //==============auction if ($is_mod_auction){ $limit_it=15; $sql = "SELECT * FROM ".$GO_CONFIG->dbprefix."Auction_products pr LEFT JOIN ".$GO_CONFIG->dbprefix."Auction_products_add pra ON (pra.id_unique_prod_add=pr.id_unique_prod AND pra.id_owner_add=pr.id_owner) WHERE pr.active='1' ".$sql_add_a." ORDER BY rand() limit ".$limit_it; // WHERE pr.active='1' ".$sql_add_a." ORDER BY pr.sdate DESC limit ".$limit_it; $result = $db->sql_query($sql); //echo $sql; while($row=$db->sql_fetchrow($result)){ $htmlToText = new Html2Text (stripslashes($row['prod_desc']), 999915); $content = $htmlToText->convert(); if ($content){ $city=$citys[rand(0,$citys_add_size)]; $word=$words_x[rand(0,$words_x_size)]; $tagLink="http://".$_SERVER["SERVER_NAME"]."/Auctiontz-".getpost('dz')."-".$row['mid_cat']."-".$row['pid_cat']."-".$row['id_unique_prod'].".html-".str_replace("/","-",str_replace(" ","-",clear_txt(utf8toasci(stripslashes($row['prod_name']),2)))).".html"; echo "

"; echo ""; echo stripslashes($row['prod_name'])." w sklepie internetowym ".$city; echo ""; echo "

"; echo "".timestamp2date($row['lastmodyfied']).""; echo "
"; $content= str_replace(" a "," ".$word." ".$q." ".$city." ",$content); $content= str_replace(":"," ".$word." ".$q." ".$city." ",$content); $content= str_replace("–"," ".$word." ".$q." ".$city." ",$content); $content= str_replace("x"," ".$word." ".$q." ".$city." ",$content); $content= str_replace("\/"," ".$word." ".$q." ".$city." ",$content); // $content= str_replace("•"," ".$word." ".$q." ".$city." ",$content); echo $content; echo "

"; echo "

".$q.":

".date('l jS \of F Y h:i:s A'); echo "
"; $nums=$nums+1; } }//while } //==============shop if ($is_mod_csCommerce){ $limit_it=15; //mod.php?dz=13&op=zoom&pid=18399&cid=2&pcid=1 //csComp-13-18399-2-1.html-title-czajnik-elektryczny-adler-ad-02-mini-760-w-06-l-bialy.html $sql = "SELECT * FROM ".$GO_CONFIG->dbprefix."csCommerce_products pr LEFT JOIN ".$GO_CONFIG->dbprefix."csCommerce_products_description pra ON (pra.products_id=pr.products_id ) LEFT JOIN ".$GO_CONFIG->dbprefix."csCommerce_products_to_categories prc ON (prc.products_id=pr.products_id ) WHERE pr.active='1' ".$sql_add_b." ORDER BY rand() limit ".$limit_it; // WHERE pr.active='1' ".$sql_add_b." ORDER BY pr.products_last_modified DESC limit ".$limit_it; $result = $db->sql_query($sql); //echo "



".$sql; while($row=$db->sql_fetchrow($result)){ $htmlToText = new Html2Text (stripslashes($row['products_description']), 999915); $content = $htmlToText->convert(); if ($content){ // $tagLink="http://".$_SERVER["SERVER_NAME"]."/?pg=".$row['id']; $tagLink="http://".$_SERVER["SERVER_NAME"]."/csComp-".getpost('dz')."-".$row['products_id']."-".$row['categories_id']."-0.html-".str_replace("/","-",str_replace(" ","-",clear_txt(utf8toasci(stripslashes($row['prod_name']),2)))).".html"; $city=$citys[rand(0,$citys_add_size)]; $word=$words_x[rand(0,$words_x_size)]; echo "

"; echo ""; echo stripslashes($row['products_name']); echo ""; echo "

"; echo "".$row['products_last_modified'].""; echo "
"; $content= str_replace(" a "," ".$word." ".$q." ".$city." ",$content); $content= str_replace(":"," ".$word." ".$q." ".$city." ",$content); // $content= str_replace(";"," ".$q." ",$content); $content= str_replace("–"," ".$word." ".$q." ".$city." ",$content); $content= str_replace("x"," ".$word." ".$q." ".$city." ",$content); $content= str_replace("\/"," ".$word." ".$q." ".$city." ",$content); // $content= str_replace("•"," ".$word." ".$q." ".$city." ",$content); echo $content; echo "

"; echo "

".$q.":

".date('l jS \of F Y h:i:s A'); echo "
"; } $nums=$nums+1; }//while } //==============pages // if (!$db->sql_numrows($result) || !$is_mod_auction){ $limit_it=50-$nums; $sql = "SELECT * FROM ".$GO_CONFIG->dbprefix."pages WHERE active='1' ".$sql_add." AND name!='' AND content!='' ORDER BY rand() limit ".$limit_it; // $sql = "SELECT * FROM ".$GO_CONFIG->dbprefix."pages WHERE active='1' ".$sql_add." AND name!='' AND content!='' ORDER BY lastmodyfi DESC limit ".$limit_it; //echo $sql; $result = $db->sql_query($sql); while($row=$db->sql_fetchrow($result)){ $htmlToText = new Html2Text (stripslashes($row['content']), 999915); $content = $htmlToText->convert(); if ($content){ // $tagLink="http://".$_SERVER["SERVER_NAME"]."/?pg=".$row['id']; $tagLink="http://".$_SERVER["SERVER_NAME"]."/pg-".$row['id'].".html-".str_replace("/","-",str_replace(" ","-",clear_txt(utf8toasci(stripslashes($row['name']),2)))).".html"; $city=$citys[rand(0,$citys_add_size)]; $word=$words_x[rand(0,$words_x_size)]; echo "

"; echo ""; echo stripslashes($row['name']); echo ""; echo "

"; echo "".$row['lastmodyfi'].""; echo "
"; $content= str_replace(" a "," ".$word." ".$q." ".$city." ",$content); $content= str_replace(":"," ".$word." ".$q." ".$city." ",$content); // $content= str_replace(";"," ".$q." ",$content); $content= str_replace("–"," ".$word." ".$q." ".$city." ",$content); $content= str_replace("x"," ".$word." ".$q." ".$city." ",$content); $content= str_replace("\/"," ".$word." ".$q." ".$city." ",$content); // $content= str_replace("•"," ".$word." ".$q." ".$city." ",$content); echo $content; echo "

"; echo "

".$q.":

".date('l jS \of F Y h:i:s A'); echo "
"; } $nums=$nums+1; }//while // }//if //==============pages ather !!! // if (!$db->sql_numrows($result) || !$is_mod_auction){ $limit_it=50-$nums; $sql = "SELECT * FROM ".$GO_CONFIG->dbprefix."pages WHERE active='1' AND name!='' AND content!='' ORDER BY rand() limit ".$limit_it; // $sql = "SELECT * FROM ".$GO_CONFIG->dbprefix."pages WHERE active='1' AND name!='' AND content!='' ORDER BY lastmodyfi DESC limit ".$limit_it; //echo $sql; $result = $db->sql_query($sql); while($row=$db->sql_fetchrow($result)){ $htmlToText = new Html2Text (stripslashes($row['content']), 999915); $content = $htmlToText->convert(); if ($content){ $tagLink="http://".$_SERVER["SERVER_NAME"]."/?pg=".$row['id']; $city=$citys[rand(0,$citys_add_size)]; $word=$words_x[rand(0,$words_x_size)]; echo "

"; echo ""; echo stripslashes($row['name']); echo ""; echo "

"; echo "".$row['lastmodyfi'].""; echo "
"; $content= str_replace(" a "," ".$word." ".$q." ".$city." ",$content); $content= str_replace(":"," ".$word." ".$q." ".$city." ",$content); // $content= str_replace(";"," ".$q." ",$content); $content= str_replace("–"," ".$word." ".$q." ".$city." ",$content); $content= str_replace("x"," ".$word." ".$q." ".$city." ",$content); $content= str_replace("\/"," ".$word." ".$q." ".$city." ",$content); // $content= str_replace("•"," ".$word." ".$q." ".$city." ",$content); echo $content; echo "

"; echo "

".$q.":

".date('l jS \of F Y h:i:s A'); echo "
"; } $nums=$nums+1; }//while // }//if if (!$nums){ echo "

"; echo ""; echo $q; echo ""; echo "

"; echo "

"; echo ""; echo _CLICKFORSEEMORE.": mod.php?dz=".getpost('dz')." ".$q; echo ""; echo "

"; echo "".$q.": ".date('l jS \of F Y h:i:s A'); // echo ""; // echo $content; // echo ""; echo "


"; } echo ""; include("stopki/index_bottom.php"); //====================================================================== //--------------------------------------------------------------------------------------query end dla google tagow //====================================================================== //--------------------------------------------------------MAIN if no uper options }else{ // if ($GO_CONFIG->statystyka) makestat($_SERVER,0); define("STATADDFROMFIRSTPAGE","1"); include("mod.php"); } /* //tlko w mod.php //---cache start 2/2 if ($GO_CONFIG->chache_page_php_on){ $file_cache_index->end_cache(); } //---cache end 2/2 */ ?>