Unable to connect to MySQL server"); } else { @mysql_select_db($dbname) or die( "Unable to open database $dbname"); } } db_connect($dbserver,$dbuser,$dbpass,$dbname); $dupa=''; $get_i=''; if(isset($_GET['i']) and !empty($_GET['i'])) { if(strstr($_GET['i'], '_')) { header("Location: ".str_replace("_", "+", $_SERVER['REQUEST_URI']), true, 301); exit; } $get_i=$_GET['i']; } if(isset($_REQUEST['cuvinte']) and !empty($_REQUEST['cuvinte'])) { $get_i=$_REQUEST['cuvinte']; } if($get_i!='') { $sql_negative='SELECT * FROM `cuvinte_negative` WHERE `nr` = 0'; $r_negative=mysql_query($sql_negative); while($res_negative=mysql_fetch_array($r_negative)) { if(strstr($get_i, $res_negative['cuv_negative']) or $get_i==$res_negative['cuv_negative']) { header("Location: http://www.adresaweb.ro", true, 301); exit; } } $sql_negative='SELECT * FROM `cuvinte_negative` WHERE `nr` = 1'; $r_negative=mysql_query($sql_negative); while($res_negative=mysql_fetch_array($r_negative)) { if(strstr($get_i, ' '.$res_negative['cuv_negative'].' ') or strstr($get_i, $res_negative['cuv_negative'].' ') or strstr($get_i, ' '.$res_negative['cuv_negative']) or $get_i==$res_negative['cuv_negative']) { header("Location: http://www.adresaweb.ro", true, 301); exit; } } } //---------------------------------------------------------- //require_once('adm_adresaweb/config.php'); include('functii.php'); //echo '1) '.$_SESSION['verificare_control'].' | '.$_SESSION['verificare'].' | '.$_POST['control']; /* if(isset($_REQUEST['cuvinte']) and !empty($_REQUEST['cuvinte']) and isset($_POST['control']) and !empty($_POST['control'])) { $control=$_POST['control']; if(isset($_SESSION['verificare']) and !empty($_SESSION['verificare']) and $_SESSION['verificare']===$control and $_SESSION['verificare_control']===md5('evida248ylf')) { $dataora=date('Y-m-d H:i:s'); mysql_query('INSERT INTO `adresa_caut` ( `cauta`, `data`) VALUES ("'.$_REQUEST['cuvinte'].'", "'.$dataora.'")'); }else{ $_SESSION['verificare_control']='KJHAFBGFHKM65894227JHYTREWBMOURE'; $_SESSION['verificare']='KJHAFBGFHKM65894227JHYTRE951OURE'; //echo '
3) '.$_SESSION['verificare_control'].' | '.$_SESSION['verificare'].' | '.$_POST['control'].'
'; exit; } } $_SESSION['verificare_control']='KJHAFBGFHKM65894227JHYTREWBMOURE'; $_SESSION['verificare']='KJHAFBGFHKM65894227JHYTRE951OURE'; //echo '
2) '.$_SESSION['verificare_control'].' | '.$_SESSION['verificare'].' | '.$_POST['control'].'
'; */ //usleep(10000); //$start_2=microtime(true); //echo 'timp_2='.($start_2-$start_1).'
'; function neat_trim($str, $n, $delim=' ...') { $len = strlen($str); if ($len > $n) { preg_match('/(.{' . $n . '}.*?)\b/', $str, $matches); return rtrim($matches[1]) . $delim; }else{ return $str; } } $i=str_replace('_', ' ', $_GET['i']); $i=str_replace('+', ' ', $_GET['i']); $cuvinte=$_POST['cuvinte']; $curent=(int)($_GET['page']); $limit=10; if(isset($_GET['limita'])) $limit=$_GET['limita']; if($curent==0) $curent=1; $st=($curent-1)*$limit; ?> '' and $similar[2]=='') { $x=5; $xx=2; } if($similar[2]<>'' and $similar[4]=='') { $x=4; $xx=1; } if($similar[4]<>'') { $x=3; $xx=0; } foreach($similar as $sim) { if(strlen($sim)>2) { $nr_sim=0; $sql='SELECT DISTINCT `cauta` FROM `adresa_caut` WHERE `cauta` like "%'.$sim.'%" limit '.$st.', '.$limit; $r=mysql_query($sql); while($res=mysql_fetch_array($r)) { //-/-* $cautarea=strtolower($res['cauta']); $cautarea=str_replace('"', '', $cautarea); $cautarea=str_replace('\"', '', $cautarea); if($nr_sim<=$x and $cautarea!=$i) $cuv_sim_antet.=''.$cautarea.', '; if($nr_sim<=$xx) { if($cautarea==$antetul) { $xx=$xx+1; }else{ $cuv_similare.=$cautarea.', '; } } $nr_sim=$nr_sim+1; if($nr_sim>$x) break; //-*-/ $cautarea=strtolower($res['cauta']); $cautarea=str_replace('"', '', $cautarea); $cautarea=str_replace('\"', '', $cautarea); $da_temp=''; $cautarea_temp=explode(" ", $cautarea); foreach($cautarea_temp as $ct_temp) { $sql_ct_temp="SELECT `titlu` FROM `adresa_url` WHERE `titlu` like '%".$ct_temp."%' or `cuvinte_cheie` like '%".$ct_temp."%'"; $r_ct_temp=mysql_query($sql_ct_temp); if(isset($r_ct_temp) and !empty($r_ct_temp)) $numResults = mysql_num_rows($r_ct_temp); if($numResults > 0) { $da_temp.='d'; }else{ $da_temp.='n'; } } if(!strstr($da_temp, 'n') and $da_temp!='n') { if($nr_sim<=$x and $cautarea!=$i) $cuv_sim_antet.=''.$cautarea.', '; if($nr_sim<=$xx) { if($cautarea==$antetul) { $xx=$xx+1; }else{ $cuv_similare.=$cautarea.', '; } } $nr_sim=$nr_sim+1; if($nr_sim>$x) break; } } } } $cuv_similare=substr($cuv_similare, 0, -2); //if(!empty($cuv_similare)) $titlu.=' - '.$cuv_similare; if(!empty($cuv_similare)) $antetul.=' - '.$cuv_similare; /* $sql_titlu='SELECT * FROM `adresa_submenu` WHERE `cuv_sec` like "'.$i.'"'; $r_titlu=mysql_query($sql_titlu); $res_titlu=mysql_fetch_array($r_titlu); if(!empty($res_titlu['titlu'])) { $titlu=$res_titlu['titlu']; $antetul=$res_titlu['titlu']; } */ $titlu=$i; $antetul=$i; if(substr($i, 0, 2)=='\"') { $ghilim=str_replace('\"', '', $i); $titlu=$ghilim; $antetul=$ghilim; } } if(isset($_REQUEST['cuvinte']) and !empty($_REQUEST['cuvinte'])) { $titlu=$_POST['cuvinte']; $antetul=$_POST['cuvinte']; if(substr($cuvinte, 0, 2)=='\"') { $ghilim=str_replace('\"', '', $cuvinte); $titlu=$ghilim; $antetul=$ghilim; } } $pag_curr=''; if($curent!='' and $curent!=1) { $pag_curr=' | pagina '.$curent; } echo ''.$titlu.$pag_curr.''; ?>
'.$antetul.''; ?>


 

  Cuvinte cautate:







căutare personalizată

$last) $prev=$last; if($curent>1) { echo 'inapoi '; } else { echo 'inapoi '; } $cur=intval($max/2); $start=$curent-$cur; if($start<1) $start=1; if($last>$max) $start_end=$last-$max; if($start>=$start_end) $start=$start_end; $end=$start+$max; for ($jump_to_page = $start; ($jump_to_page <= $end) and ($jump_to_page <= $last); $jump_to_page++) { if ($jump_to_page == $curent) { $display_links_string.= '' . $jump_to_page . '  '; } else { $display_links_string.= ''.$jump_to_page.'  '; } } echo $display_links_string; if($curent<$last) { echo 'inainte'; } else { echo 'inainte'; } ?>
' .$k. '  '; } else { $kstr.=''.$k.'  '; } $k=$k+20; } if($kstr!='') echo 'salt la pagina: '.$kstr; */ ?>
contact

'.chr(64+$i).' '; }else{ $litere.=''.chr(64+$i).' '; } } if($litera==chr(90)) { echo 'Index alfabetic: '.$litere."".chr(64+$i).""; }else{ echo 'Index alfabetic: '.$litere."".chr(64+$i).""; } */ /* ?> cautari frecvente: 3, "B"=>2, "C"=>5, "D"=>3, "E"=>2, "F"=>2, "G"=>2, "H"=>1, "I"=>2, "J"=>1, "K"=>1, "L"=>1, "M"=>3, "N"=>1, "O"=>1, "P"=>4, "Q"=>1, "R"=>2, "S"=>4, "T"=>2, "U"=>1, "V"=>2, "W"=>1, "X"=>1, "Y"=>1, "Z"=>1); $href='caut_cuv.php?clitera='; //for($i=1;$i<26;$i++) //{ // for($i_array=1;$i_array<=$array_litere[chr(64+$i)];$i_array++) // { // $litere.=''.chr(64+$i).$i_array.' '; // } //} for($i=1;$i<26;$i++) { $litere.=''.chr(64+$i).' '; } echo ' '.$litere.''.chr(64+$i).' | '; */ ?> Link-uri utile:

Weblink - Adrese web - Director Web


Baia Mare | Director web Goro-MRO | Cazare pensiune Casa Pintea Baia Mare | Article About
copyright - jocuri, ziare, stiri, sport, matrimoniale - director web adresweb.ro 2008