INTERNET VA DASTURLASH
|
Skriptlar muhokamasi
|
Mavzu:
JohnCMS bo`yicha umumiy savollar
Mavzu fayllari
(93)
Bahh Tee, axa mana bunda hato yo'qmi <?php // Sayt urlsini aniqlash $uy='http://'.$_SERVER['HTTP_HOST']; // sessiyani boshlash session_start(); ob_start(); //---------------//----------//---------Link tekshiramiz-----------//-----------//-------------// foreach($_GETas$links){ if(! is_string($links)||! preg_match('#^(?:[a-z0-9_\\-/]+|\\.+(?!/))*$#i',$links)){ header('Location: '.$uy.''); exit; } } unset($links); //---------------//----------//---------FILTR------------//-----------//-------------// function radar($matn){ $matn= trim($matn); $matn= htmlspecialchars($matn); $matn= mysql_escape_stri ng($matn); return$matn; } //---------------//----------//---------MEHMON LARGA------------//-----------//-------------// $kim='mehmon'; $noazo='Kechirasiz bu sahifa faqat sayt azolari uchun mo`ljallangan! Sahifa siz uchun qiziqmi? Unday bo`lsa marhamat bepul <a href="'.$uy.'/newreg.php"><b>Ro`yxatdan o`ting!</b></a>'; //---------------//----------//---------XATOLARNI KO`RSATADI------------//-----------//-------------// function xato($error){ echo'<div class="rmenu"><center> <img src="'.$uy.'/resurs/system/error.png" alt=">>" /> <span style="color: #CC0000">'.$error.'</span></center></div>'; } function okey($okkey){ echo'<div class="rmenu"><center> <img src="'.$uy.'/resurs/system/ok.png" alt=">>" /> <span style="color: #10CC06">'.$okkey.'</span></center></div>'; } function check($check){ $check= htmlspecialchars( mysql_real_escap e_string($check)); $search= array('|','\\'','$','\\\\','^','%','`',"\\0","\\x00","\\x1A","??????"); $replace= array('|',''','$','\','^','%','`','','','',''); $msg= str_replace($search,$replace,$msg); $msg= stripslashes( trim($msg)); return$check; } require_once('hujjat.php'); ?>
Yuklab olish
Onlayn 257 (0/257)
Forumga a'zo bo'lish
Forumdan qidirish
Bosh sahifa