error_reporting(E_ALL ^ E_WARNING); session_start (); ini_set( "display_errors", 0); // Use the DB managment class and declare an instance of it require_once ('classes/quickdb.class.php'); $adminDB = new QuickDB (); global $adminDB; // Use the DB managment class and declare an instance of it require_once ('classes/db.class.php'); require_once ('functions.php'); $db = new db_class (); // connect to the database if (! $db->connect ()) $db->print_last_error ( true ); $site_url="https://kartonetramadan.com/lebanon/"; $image_url='https://kartonetramadan.com/lebanon/'; $path = $_SERVER['PHP_SELF']; $file = basename($path); // $file is set to "index.php" $file = basename($path, ".php"); // $file is set to "index.php" $file_name = $file ; if(!isset($_SESSION['lang'])){ $_SESSION['lang'] = 2;} if($_SESSION['lang']==1){ $enlangId=1;}else{ $enlangId=2;} date_default_timezone_set('Asia/Beirut'); $todayDateTime = date('Y-m-d H:i:s'); $todayDate = date('Y-m-d'); $todayTime = date('H:i:s'); // NOTIFICATIONS MESSAGES $oridNotification = "Order ID "; $orderNotification = " The order"; $priceNotification = " added the price of the order"; $cancelNotification = " The order has been cancelled by "; $receiveNotification = " The order has been recieved by "; $reviewNotification = " submitted a review in "; $reviewreplyNotification = " submitted a review reply in "; $messageNotification = " You have received a new message from "; $aroridNotification = "رقم الطلب "; $arorderNotification = " الطلب "; $arpriceNotification = " اضاف سعر الطلب "; $arcancelNotification = " تم الغاء الطلب من جانب "; $arreceiveNotification = " تم استلام الطلب من جانب "; $arreviewNotification = " قدم مراجعة في "; $arreviewreplyNotification = " ارسل رد المراجعة في "; $armessageNotification = " لقد استقبلت رسالة جديدة من "; // END NOTIFICATION MESSAGES function POSTtmyFunc_mysql_real_escape_string(&$item, $key) { $item = str_replace('"',"'",mysql_real_escape_string(trim($item))); $_POST[$key] = $item; } function REQUESTmyFunc_mysql_real_escape_string(&$item, $key) { $item = str_replace('"',"'",mysql_real_escape_string(trim($item))); $_REQUEST[$key] = $item; } function GETmyFunc_mysql_real_escape_string(&$item, $key) { $item = str_replace('"',"'",mysql_real_escape_string(trim($item))); $_GET[$key] = $item; } @array_walk_recursive(@$_POST,'POSTtmyFunc_mysql_real_escape_string'); @array_walk_recursive(@$_GET,'GETmyFunc_mysql_real_escape_string'); @array_walk_recursive(@$_REQUEST,'REQUESTmyFunc_mysql_real_escape_string'); ?>