| Server IP : 104.21.80.248 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/nongplamor_new/modules/webtool/ |
Upload File : |
<?php
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
//error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_WARNING);
error_reporting(E_ALL);
//print_r($_SESSION) ;
include "../../includes/class.mysql.php";
include "../../includes/config.in.php";
$flist = array("ben" , "main","salary");
$surl = isset($_REQUEST['surl'])? htmlspecialchars($_REQUEST['surl']) : "" ;
if(in_array($surl, $flist) || $surl ==""){
echo "no" ;
exit ;
}
$dbs = New DB();
$dbs->connectdb('surl', DB_USERNAME, DB_PASSWORD);
$res = $dbs->select_query("SELECT * FROM urls WHERE shortURL='". $surl ."' ");
if($arr = $dbs->fetch($res)){
echo "no" ;
exit ;
}
echo "yes" ;
?>