$geri = "
Geri Dön";
//error_reporting(0);
define('DB_HOST' , 'localhost');
define('DB_NAME' , 'ilrehber');
define('DB_USER' , 'iskender');
define('DB_PASS' , 'arzubanu2211');
function check_compulsory() {
$ret_msg = "";
foreach (func_get_args() as $name => $value){
if (empty($value[1])) {
$ret_msg .= "
$value[0] alanı boş bırakılamaz.";
}
}
return $ret_msg;
}
function die_compulsory() {
global $err_str;
global $geri;
if (!empty($err_str)) {
echo "";
echo "$err_str";
echo "
";
die("$geri");
}
}
function Connect_DB() {
mysql_connect(DB_HOST, DB_USER, DB_PASS);
mysql_select_db(DB_NAME);
}
function set_empty(&$str_param) {
if (empty($str_param)) {
$str_param = "BOŞ";
}
}
function Hacking_Protect() {
$banned_keys = array(
"\"",
"'",
"`",
"(",
")",
";",
"|",
"<",
">",
"=",
"?",
"*",
"_",
"&",
"$",
"%",
"/"
);
while (list($var_name, $var_value) = each($_POST)) {
global ${$var_name};
if (($var_name != "f_metin") && ($var_name != "FCKeditor1") && !is_array(${$var_name})) {
${$var_name} = str_replace($banned_keys, "", "$var_value");
}
}
reset($_POST); //go to first element
while (list($var_name, $var_value) = each($_GET)) {
global ${$var_name};
if (($var_name != "f_metin") && ($var_name != "FCKeditor1") && !is_array(${$var_name})) {
${$var_name} = str_replace($banned_keys, "", "$var_value");
}
}
reset($_GET); //go to first element
}
$sehirler = array(
"1" => "ADANA",
"2" => "ADIYAMAN",
"3" => "AFYONKARAHİSAR",
"68" => "AKSARAY",
"5" => "AMASYA",
"6" => "ANKARA",
"7" => "ANTALYA",
"75" => "ARDAHAN",
"8" => "ARTVİN",
"9" => "AYDIN",
"4" => "AĞRI",
"10" => "BALIKESİR",
"74" => "BARTIN",
"72" => "BATMAN",
"69" => "BAYBURT",
"14" => "BOLU",
"15" => "BURDUR",
"16" => "BURSA",
"11" => "BİLECİK",
"12" => "BİNGÖL",
"13" => "BİTLİS",
"17" => "ÇANAKKALE",
"18" => "ÇANKIRI",
"19" => "ÇORUM",
"20" => "DENİZLİ",
"81" => "DÜZCE",
"21" => "DİYARBAKIR",
"22" => "EDİRNE",
"23" => "ELAZIĞ",
"25" => "ERZURUM",
"24" => "ERZİNCAN",
"26" => "ESKİŞEHİR",
"27" => "GAZİANTEP",
"29" => "GÜMÜŞHANE",
"28" => "GİRESUN",
"30" => "HAKKARİ",
"31" => "HATAY",
"32" => "ISPARTA",
"76" => "IĞDIR",
"34" => "İSTANBUL",
"35" => "İZMİR",
"46" => "KAHRAMANMARAŞ",
"78" => "KARABÜK",
"70" => "KARAMAN",
"36" => "KARS",
"37" => "KASTAMONU",
"38" => "KAYSERİ",
"71" => "KIRIKKALE",
"39" => "KIRKLARELİ",
"40" => "KIRŞEHİR",
"41" => "KOCAELİ",
"42" => "KONYA",
"43" => "KÜTAHYA",
"79" => "KİLİS",
"44" => "MALATYA",
"45" => "MANİSA",
"47" => "MARDİN",
"33" => "MERSİN",
"48" => "MUĞLA",
"49" => "MUŞ",
"50" => "NEVŞEHİR",
"51" => "NİĞDE",
"52" => "ORDU",
"80" => "OSMANİYE",
"53" => "RİZE",
"54" => "SAKARYA",
"55" => "SAMSUN",
"57" => "SİNOP",
"58" => "SİVAS",
"56" => "SİİRT",
"63" => "ŞANLI URFA",
"73" => "ŞIRNAK",
"59" => "TEKİRDAĞ",
"60" => "TOKAT",
"61" => "TRABZON",
"62" => "TUNCELİ",
"64" => "UŞAK",
"65" => "VAN",
"77" => "YALOVA",
"66" => "YOZGAT",
"67" => "ZONGULDAK"
);
?>