',$d); return $d; } function sdata($s) { if($s!='') { $s2=$s[8].$s[9].' '.luna($s[5].$s[6]).' '.$s[0].$s[1].$s[2].$s[3]; //$s3 = explode(' ',$s); $ll = $s[5].$s[6]; $zz = $s[8].$s[9]; $aa = $s[0].$s[1].$s[2].$s[3]; $zi = jddayofweek ( cal_to_jd(CAL_GREGORIAN, $ll, $zz, $aa) , 0 ); //jddayofweek ( cal_to_jd(CAL_GREGORIAN, date("m"),date("d"), date("Y")) , 1 ); $zis = ziua($zi); return "$zis, ".$s2.' '.$s3[1]; } } $desc="$rowfirma[descriere] $rowfirma[nume]"; $key="$rowfirma[nume]"; $pag = $_GET['page']; $p=secure($_GET['p']); $page=secure($_GET['page']); $pg=secure($_GET['pg']); if($_GET['p']) { $p = secure($_GET['p']); } else { $p = 'mainpage'; } if(!$p) { $p = 'mainpage'; } if(!$p && !$idp) { $p='mainpage'; $titlu="SATU MARE portal online"; } else $titlu=strtoupper("SATU MARE portal online - Stiri "); $car = array(); $gar = array(); if($_GET['idp']) { $idp=secure($_GET['idp']); $result = mysql_query ("SELECT titlu, text, id, data, vizite, coment, sursa, link, tip FROM v_contente where id='$idp'"); $row = mysql_fetch_array($result); $rowcontent = $row; $desc.=" $row[titlu]".", Stiri, Anunturi, Sport, Politica, Restaurante, Evenimente, Monden, Hoteluri, Pensiuni, Cabane, Harta Satu Mare"; $titlu.=" $row[titlu]"; $key.=" $row[titlu]".", Stiri, Anunturi, Sport, Politica, Restaurante, Evenimente, Monden, Hoteluri, Pensiuni, Cabane, Harta Satu Mare"; $vizite = $row[vizite]; $coment = $row[coment]; $idcon = $row[id]; $pg = $row[tip]; //select parentu, nu avem ce face :( $result = mysql_query ("SELECT parent FROM v_titluri where id='$pg' and user='$userm'"); $row = mysql_fetch_array($result); $p = $row[parent]; } $result = mysql_query ("SELECT rew, id, nume FROM v_titlurip where user='$userm' order by ind, id"); while($row = mysql_fetch_array($result)) { $car[$row[id]]['nume'] = $row[nume]; $car[$row[id]]['rew'] = $row[rew]; if($row[id] == $p) { $desc.=" $row[nume]".", Stiri, Anunturi, Sport, Politica, Restaurante, Evenimente, Monden, Hoteluri, Pensiuni, Cabane, Harta Satu Mare"; $titlu.=" $row[nume]"; $key.=" $row[nume]".", Stiri, Anunturi, Sport, Politica, Restaurante, Evenimente, Monden, Hoteluri, Pensiuni, Cabane, Harta, Informatii Satu Mare"; $nume_menu = $row[nume]; } } //print_r($car); //if($_GET['page']) $result = mysql_query ("SELECT id, nume, parent FROM v_titluri where parent='$p' and user='$userm' order by ind, id "); //else //$result = mysql_query ("SELECT id, nume, parent FROM v_titluri where user='$userm' order by ind, id "); while($row = mysql_fetch_array($result)) { $gar[$row[id]]['nume'] = $row[nume]; $gar[$row[id]]['cat'] = $row[parent]; //if($row[parent] == $p) $titlu.=" ".$car[$p]; if($row[id] == $pg) { $desc.=" $row[nume]".", Stiri, Anunturi, Sport, Politica, Restaurante, Evenimente, Monden, Hoteluri, Pensiuni, Cabane, Harta Satu Mare"; $titlu.=" $row[nume]"; $key.=" $row[nume]".", Stiri, Anunturi, Sport, Politica, Restaurante, Evenimente, Monden, Hoteluri, Pensiuni, Cabane, Harta Satu Mare"; $p = $row['parent']; $t_act = $row[id]; $npg = $row[nume]; } } $desc.=" SATU MARE".", Stiri, Anunturi, Sport, Politica, Restaurante, Evenimente, Monden, Hoteluri, Pensiuni, Cabane, Harta Satu Mare"; $titlu.=" SATU MARE"; $key.=" SATU MARE".", Stiri, Anunturi, Sport, Politica, Restaurante, Evenimente, Monden, Hoteluri, Pensiuni, Cabane, Harta Satu Mare"; /* foreach($_GET as $name => $val) { if(!is_numeric($val) && $val!=$_GET['page'] && $val!=$_GET['pr'] && $val!=$_GET['pg'] && $val!=$pag && $val!='Afiseaza') { $titlu.= " $row[titlu] ".$val; $desc.= " $row[titlu] ".$val; $key.= " $row[titlu] ".$val; } } */ function _get_browser() { $browser = array ( //reversed array "OPERA", "MSIE", // parent "NETSCAPE", "FIREFOX", "SAFARI", "KONQUEROR", "MOZILLA" // parent ); $info[browser] = "OTHER"; foreach ($browser as $parent) { if ( ($s = strpos(strtoupper($_SERVER['HTTP_USER_AGENT']), $parent)) !== FALSE ) { $f = $s + strlen($parent); $version = substr($_SERVER['HTTP_USER_AGENT'], $f, 5); $version = preg_replace('/[^0-9,.]/','',$version); $info[browser] = $parent; $info[version] = $version; break; // first match wins } } return $info; } $br = _get_browser(); $apages = array("anunturi", "subcat", "detalii_produs", "c_av3", "add_anunt_pf", "add_anunt2_pf", "add_anunt3_pf"); if(in_array($page, $apages)) $is_anunturi = 1; if($is_anunturi) { $scar = array(); $scarp = array(); $result = mysql_query ("SELECT id , nume, nr_produse FROM d_subcategorii order by nume"); while($row = mysql_fetch_array($result)) { $scar[$row[id]] = $row[nume]; $scarp[$row[id]] = $row[nr_produse]; } } function encodeToUtf8($string) { return mb_convert_encoding($string, "UTF-8", mb_detect_encoding($string, "UTF-8, ISO-8859-1, ISO-8859-15", true)); } if($_GET['page'] == 'detalii_produs') { $produs = secure ($_GET['produs']); $azi = date ("Y-m-d"); $query = "SELECT *, if('$azi' < valabilitate, 0, 1) as expirat FROM d_produse where id='$produs' "; $resultprodus=mysql_query($query); $rowprodus=mysql_fetch_array($resultprodus); $titlu = $rowprodus[comercializare]." ".$rowprodus[denumire]; $desc = $titlu.", Stiri, Anunturi, Sport, Politica, Restaurante, Evenimente, Monden, Hoteluri, Pensiuni, Cabane, Harta Satu Mare"; } if($_GET['page'] == 'anunturi') { $titlu = "ANUNTURI SATU MARE "; $key = "ANUNTURI SATU MARE ".", Stiri, Anunturi, Sport, Politica, Restaurante, Evenimente, Monden, Hoteluri, Pensiuni, Cabane, Harta Satu Mare"; $desc = "ANUNTURI SATU MARE ".", Stiri, Anunturi, Sport, Politica, Restaurante, Evenimente, Monden, Hoteluri, Pensiuni, Cabane, Harta Satu Mare"; } /* if($_GET['idp']) { $result = mysql_query ("SELECT fr, titlu, text, id, data, html, vizite, coment, tip, de_catre, sursa, link FROM v_contente where id='$idp' and user='$userm'"); $row = mysql_fetch_array($result); } */ ?> <? echo $titlu; ?>
  Satu Mare situat in nord-vestul României, străbătut de vechiul râu Someş şi locuit din timpuri imemoriabile de geto-daci, a fost leagănul culturii şi civilizaţiei româneşti.

 
    Curs valutar
'.sdata($azi).'

'; if($usd >= $usd_ieri) echo" 1 USD = $usd RON "; else echo" 1 USD = $usd RON "; if($eur >= $eur_ieri) echo"
1 EUR = $eur RON "; else echo"
1 EUR = $eur RON "; echo""; ?>
Catalog Firme Satu Mare     
    cauta   
'; $npg='Prima pagina'; $wid = intval(100/($totr+2)); if(!$_GET['page']) echo "Home"; else echo "Home"; foreach($car as $idcar => $numecar) { if($p==$idcar) { echo "".$numecar['nume'].""; $nume_menu = $numecar['nume']; $rew = $numecar['rew']; } else echo "".$numecar['nume'].""; if($idcar==4) { if($_GET['page']=='anunturi') echo "Anunturi"; else echo "Anunturi"; } } if(!$nume_menu) $nume_menu="Home"; //end menu echo"
"; $n=count($gar); $i=0; //while($row = mysql_fetch_array($result)) foreach($gar as $idg => $gara) { $numeg = $gara['nume']; $cat = $gara['cat']; //if($idcar==$cat) //{ if($idg == $pg) echo "$numeg"; else echo "$numeg"; $i++; if($i==1 && !$_GET['pg']) { $pg = $idg; $npg=$numeg; } if($_GET['pg']==$idg) { $pg = $idg; $npg=$numeg; } //} } $resultsc = mysql_query ("SELECT text FROM v_contente where tip='scroll' order by id limit 1"); //echo mysql_error(); $rowsc = mysql_fetch_array($resultsc); if(trim(strip_tags($rowsc[text]))!='') echo'
'.$rowsc[text].'
'; echo"
"; $tip = $p; $str=''; $row = $rowcontent; ?>
"; $i=0; while($rowaa = mysql_fetch_array($resultaa)) { $i++; if($i==1) { echo""; echo""; } if($tot>1) { if($i==1) echo'
'; echo ""; echo""; } } if($tot>1) echo"
  $rowaa[nume]   |
"; if($tot>1) { echo"
"; } echo"
"; } // gata recpama */ $tabela='sus'; $resultaa = mysql_query ("SELECT id , nume, nr_agentii, nr_anunturi, link, activ, headerp FROM sus order by rand() limit 1 "); $rowaa = mysql_fetch_array($resultaa); if($rowaa[activ]!=0) { echo"
"; if($rowaa[headerp]!='application/x-shockwave-flash') { if(trim($rowaa[link])!='') echo""; else echo""; } if($rowaa[headerp]=='application/x-shockwave-flash') echo""; echo"

"; } if($HTTP_GET_VARS['page'] && preg_match("#^[a-z0-9_]+$#i",$page) && file_exists($HTTP_GET_VARS['page'].".php")) { $page=$HTTP_GET_VARS['page']; //echo"Page : $page"; include("./$page.php"); } else { include("main_page.php"); } ?>
Ultimele

'; echo"
"; $num_pp = 10; if($HTTP_GET_VARS['tot']) { $tot = secure($HTTP_GET_VARS['tot']); } else { $resultyy = mysql_query ("select count(*) as tot FROM v_contente inner join v_titluri on v_contente.tip = v_titluri.id where v_titluri.parent='$first_cat' "); $rowyy = mysql_fetch_array($resultyy); $tot = $rowyy[tot]; } $result = mysql_query ("SELECT v_contente.id , v_contente.titlu, v_contente.vizite, v_contente.tip, v_contente.coment, v_contente.nota FROM v_contente inner join v_titluri on v_contente.tip = v_titluri.id where v_titluri.parent='$first_cat' order by id desc limit $num_pp"); while($row = mysql_fetch_array($result)) { echo " $row[titlu]
"; } $nr_pag = intval($tot / $num_pp)+1; if($nr_pag!=1) { echo"
"; if($nr_pag >4) $nr_pag=4; echo"1  "; for($i = 2; $i <= $nr_pag; $i++) echo"$i  "; } echo"

"; /* //curs valutar $cresult = mysql_query("select valoare, valoare_ieri from d_curs where tip='curs_eur'"); $crow = mysql_fetch_array($cresult); $eur = $crow[valoare]; $eur_ieri = $crow[valoare_ieri]; $cresult = mysql_query("select valoare, valoare_ieri from d_curs where tip='curs_usd'"); $crow = mysql_fetch_array($cresult); $usd = $crow[valoare]; $usd_ieri = $crow[valoare_ieri]; $azi=date("Y-m-d"); $usdv = str_replace('.','',$usd); $eurv = str_replace('.','',$eur); echo'
Curs valutar '.sdata($azi).'

'; if($usd >= $usd_ieri) echo" 1 USD = $usd RON "; else echo" 1 USD = $usd RON "; if($eur >= $eur_ieri) echo"
1 EUR = $eur RON "; else echo"
1 EUR = $eur RON "; echo"

Convertor valutar
"; echo'

'; echo"
"; echo'
Vremea

'; // '.sdata($azi).' include"vremea/satumare.html"; echo"
"; */ if($judet) $jb = $judet; else $jb = 0; $swb=0; $result = mysql_query ("SELECT id , nume, activ, link, headers FROM d_reclame where activ!=0 order by ind"); while($row = mysql_fetch_array($result)) { if($row[headers]!='application/x-shockwave-flash') { if(trim($row[link])!='') echo"

"; else echo"

"; } if($row[headers]=='application/x-shockwave-flash') echo"

"; } /* $resultsc = mysql_query ("SELECT text FROM v_contente where tip='linkuri_dreapta' order by id"); //echo mysql_error(); while($rowsc = mysql_fetch_array($resultsc)) //if(trim(strip_tags($rowsc[text]))!='') echo $rowsc[text]; */ include"adsense2.php"; echo"

"; ?>
"; echo"
'; $npg='Prima pagina'; if(!$_GET['page']) echo "SATU MARE"; else echo "SATU MARE"; foreach($car as $idcar => $numecar) if($p==$idcar) { echo "".$numecar['nume'].""; } else echo "".$numecar['nume'].""; //end menu echo"
"; ?>
Anunturi Satu Mare, Servicii de Gazduire Web si Inregistrare Domenii prin Claus Web srl, Satu Mare, 440080, Corvinilor, 5/D8, tel/fax: +40.261768580 | Sitemap