'; // var_dump(realpath('assets/images/uploads/aw/exclusive-escorts-wimbledon-1563809352480-160x240.webp')); // var_dump(file_exists('assets/images/uploads/aw/exclusive-escorts-wimbledon-1563809352480-160x240.webp')); // unlink('assets/images/uploads/aw/exclusive-escorts-wimbledon-1563809352480-160x240.webp'); // die; //} /* Error reporting */ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); //echo phpinfo(); //die('In maintenance'); include 'includes/config.php'; spl_autoload_register(function ($class) { $filename = COMMON_PATH . '/classes/' . $class . '.php'; if(file_exists($filename)){ include $filename; } }); include COMMON_PATH . '/phpThumb/ThumbLib.inc.php'; //include si instantiere include COMMON_PATH . '/phpMailer/class.phpmailer.php'; //include si instantiere include COMMON_PATH .'/functions.php'; include SITE_PATH.'/includes/functions.php'; //include SITE_PATH.'/includes/amp_remove_css.class.php'; function callback($buffer) { $buffer = str_replace("http://", "https://", $buffer); $buffer = str_replace("http:\/\/", "https:\/\/", $buffer); $buffer = str_replace("href='//", "https://", $buffer); $buffer = str_replace(" ", " ", $buffer); $buffer = str_replace("’", "'", $buffer); $buffer = str_replace("&", "&", $buffer); $search = array( '/\>[^\S ]+/s', // strip whitespaces after tags, except space '/[^\S ]+\', '<', '\\1' ); $buffer = preg_replace($search, $replace, $buffer); return $buffer; } ob_start("callback"); $rows = $db->get_rows("SHOW TABLES LIKE '" . DB_TABLE_PREFIX . "%'" ); foreach ($rows as $row) { //print_r($row); $table_name = current($row); $table_variable = $table_name.'_table'; $table_variable = str_replace(DB_TABLE_PREFIX,'', $table_variable); $$table_variable = $table_name; } $logged_in = 0; //check if login if(isset($_COOKIE[DB_TABLE_PREFIX.'email']) && isset($_COOKIE[DB_TABLE_PREFIX.'password'])){ $email = $db->escape(decode($_COOKIE[DB_TABLE_PREFIX.'email'])); $password = $db->escape(decode($_COOKIE[DB_TABLE_PREFIX.'password'])); $udata = $db->fetch_sql("SELECT * FROM $users_table WHERE email='$email' && password='$password' && `status`=1 LIMIT 1"); if(isset($udata['id'])){ $_SESSION['user_id']=$udata['id']; $_SESSION['email']=$udata['email']; $_SESSION['rang']= isset($udata['rang']) ? $udata['rang'] : ''; $udata['avatar'] = avatar($udata['skey'],37,37); $logged_in = 1; } } include 'includes/routes.php'; exit;