hjkhhrterwefdgdfgdfgdfgdgdfgdfgdsvstertrt
bnmbertsdfsdfgdfgdfgfffdgdfgdfgrtdfg
/
home
/
u652258970
/
domains
/
drgreal.in
/
public_html
/
Upload FileeE
HOME
<?php /*$host = "localhost"; $user = "root"; $pwd = ""; $connection = mysql_connect($host,$user,$pwd); $db = "drgrealn_jaimaa"; mysql_select_db($db); */ //error_reporting(E_ALL); //echo "Config"; exit; define("SITE_URL","https://drgreal.in"); //define("SITE_URL","http://localhost/jaimaa"); $host = "localhost"; $user = "u652258970_drgrealuser"; $pwd = "7T9P0yg*y"; //echo "bef conection"; exit; $connection = mysql_connect($host,$user,$pwd); //var_dump($connection) //echo "after conection"; exit; $db = "u652258970_drgrealadmin"; $db_selected = mysql_select_db($db); if (!$db_selected) { die ('Can\'t use database : ' . mysql_error()); } $q= "select * from tbl_settings"; $query=mysql_query($q) or die(mysql_error()); //echo $q; $result=mysql_fetch_array($query); //print_r($result); exit; //echo $result['set_url']; function sanitizeFilename($f) { // a combination of various methods // we don't want to convert html entities, or do any url encoding // we want to retain the "essence" of the original file name, if possible // char replace table found at: // http://www.php.net/manual/en/function.strtr.php#98669 $replace_chars = array( 'Š'=>'S', 'š'=>'s', 'Ð'=>'Dj','Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 'Ú'=>'U', 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss','à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', 'å'=>'a', 'æ'=>'a', 'ç'=>'c', 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y', 'ƒ'=>'f' ); $f = strtr($f, $replace_chars); // convert & to "and", @ to "at", and # to "number" $f = preg_replace(array('/[\&]/', '/[\@]/', '/[\#]/'), array('-and-', '-at-', '-number-'), $f); $f = preg_replace('/[^(\x20-\x7F)]*/','', $f); // removes any special chars we missed $f = str_replace(' ', '-', $f); // convert space to hyphen $f = str_replace('\'', '', $f); // removes apostrophes $f = preg_replace('/[^\w\-\.]+/', '', $f); // remove non-word chars (leaving hyphens and periods) $f = preg_replace('/[\-]+/', '-', $f); // converts groups of hyphens into one return strtolower($f); } $room_arr = array('Independent House/Villa new','Independent House/Villa resale','Multistorey Apartment resale','Multistorey Apartment new','Commercial Office Space','Farm House Approved Plot','Commercial Shop','Commercial Showroom','Industrial Shed','Industrial Building','Warehouse/ Godown','Business Centre','Hotel','Joint Venture','Paying Guest','Room Mates','Furnished Sharing accommodation','Independent House/Villa rent','Multistorey Apartment Rent','Commercial Office Space Rent','Commercial Shop Rent','Industrial Shed Rent','Industrial Building Rent','Independent House Lease','Apartment Lease'); $land_arr = ['Independent House/Villa new','Independent House/Villa resale','Commercial Land','Farm House Approved Plot','Agricultural Land','Industrial Land','Residential Plot/Land','Land Lease']; $new_arr = array('Independent House/Villa new','Multistorey Apartment new'); $resale_arr = array('Independent House/Villa resale','Multistorey Apartment resale'); function get($url, $params=array()) { $url = $url.'?'.http_build_query($params, '', '&'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); // var_dump($response);exit; curl_close($ch); return $response; } define('USER','jaimaa'); define('PASSWORD','9600144268');//9600144268 define('SID','JAIMAA'); define('MTYPE','N'); define('MOBILE','9790730516');