include ("classes/mail/MAIL5.php"); include_once ("session.php"); $pagg = 2; if (array_key_exists("account", $_GET)) { $praam = array("id" => $_GET["account"]); $checaaklogin = $core ->getaffiliates_accouts($praam); if($checaaklogin[0]['business'] == 3772){ header("Location: https://tawasols.com/business_index2arabic.php?id=".$checaaklogin[0]['business']."&account=".$_GET["account"]."&checktime=".$_GET["checktime"]); exit(); } $_SESSION['accountmarketing'] = $_GET["account"]; } $messagemobile = null ; if($accountlogin != null){ if (array_key_exists("account", $_GET)) { $_SESSION['accountmarketing'] = $_GET["account"]; } header("Location: logout.php"); exit(); } $webid = 0 ; if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } //whether ip is from proxy elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } //whether ip is from remote address else { $ip = $_SERVER['REMOTE_ADDR']; } if (array_key_exists("email", $_POST)) { if(@$_POST["email"]) { $_SESSION["cpost"]=$_POST; $contactmessage = null; if($_POST["password"] == $_POST["confirmpassword"]) { $pram = array("email" => $_POST["email"]); $checklogin = $core ->getaccount($pram); if($checklogin != null){ $contactmessage = "الايميل مسجل بالفعل ."; }else{ $phone = $_POST["countryCode"] . $_POST["phone"]; $pram = array("first_name" => $_POST["first_name"] , "last_name" => $_POST["last_name"] , "ip" => $ip , "email" => $_POST["email"] , "tawasol_packages" => $_POST["tawasol_packages"] , "phone" => $phone , "password" => strtolower($_POST["password"]) , "type" => $_POST["type"] ); $addaccount = $core ->addaccount($pram); if(($addaccount == 1)&&($_POST["type"] == 2)){ $pram = array("all" => 1); $allbusiness = $core ->getbusiness($pram); $num = count($allbusiness) - 1; $lastid = $allbusiness[$num]['id']; $newsid = $lastid + 1; $username = "admin".$newsid; $password = $_POST["password"]; $admin_link = "https://tawasols.com/directory/business_back/businessview.php?showdetail=&id=".$newsid ; if($_POST["new_sub_category"] != null){ $pram = array("id" => $_POST["sub_category"] ); $sub_category = $core ->getsub_category($pram); $newtags = $sub_category[0]['tags_english'] . " , " . $_POST["new_sub_category"]; $pram = array("name_english" => $_POST["new_sub_category"] , "level" => $_POST["sub_category"] , "icon" => $sub_category[0]['icon'] , "tags_english" => $newtags); $addsub = $core ->addsub_category($pram); if(($addsub == 1)){ $pram = array("all" => 1); $subsub = $core ->getsub_category($pram); $num = count($subsub) - 1; $sub_category = $subsub[$num]['id']; }else{ $sub_category = $_POST["sub_category"]; } }else{ if($_POST["sub_category"] != null){ $sub_category = $_POST["sub_category"][0]; } } $pram = array("main_category" => $_POST["main_category"] , "sub_category" => $sub_category , "name_english" => $_POST["name_english"] , "shop_name" => $_POST["shop_name"] , "email" => $_POST["email"] , "account" => $_POST["account"] , "username" => $username , "password" => $_POST["password"] , "admin_link" => $admin_link ); $addbusiness = $core ->addbusiness($pram); if($addbusiness == 1){ $pram = array("email" => $_POST["email"] , "all" => 1); $business = $core ->getbusiness($pram); if(count($_POST["sub_category"]) > 1){ $travelint6 = 1; while ($travelint6 < count($_POST["sub_category"])){ $pram = array("main_category" => $_POST["main_category"] , "sub_category" => $_POST["sub_category"][$travelint6] , "business" => $business[0]['id'] ); $addbusiness = $core ->addbusiness_sub_category($pram); $travelint6 = $travelint6 + 1; } } $username = "admin".$business[0]['id']; $_SESSION["directory_status_UserProfile_UserName"] = $username; $webid = $business[0]['id']; $password = strtolower($_POST["password"]); $admin_link = "https://tawasols.com/business_back/businessview.php?showdetail=&id=".$business[0]['id']."&username=".$username."&password=".$password ; $pram = array("username" => $username , "id" => $business[0]['id'] ); $update = $core ->updatebusiness($pram); $text .= "
شكرا لإختيارك منصة تواصل لإطلاق موقعك الإليكتروني المتكامل.
يمكنك البدء بإدخال محتوى الموقع والتعديل عليه من خلال لوحة التحكم الخاصة بك من خلال الرابط التالي:
رابط لوحة تحكم
إسم المستخدم: ".$username."
كلمة المرور: ".$password."
"."وسوف يقوم فريق الدعم الفني بمراجعة المحتوى لتفعيل الموقع خلال 48 ساعة من سداد الإشتراك.
Thank you for choosing a TAWASOL platform to launch your integrated website.
You can start entering and modifying the content of the site through your control panel through the following link:
Control Panel Link
Username : ".$username."
Password : ".$password."
The technical support team will review the content to activate the site within 48 hours of paying the subscription.
Best Wishes,
Basma Samir
Senior account manager
Tawasol E-PAY
info@tawasolit.com
+201204722224
" . $text . "
"); $htmlv = MIME5::message("$comments", 'text/html'); $mess = MIME5::compose($txtv, $htmlv); if(true /*check_email_address($email) && !empty($comments)*/) { unset($_SESSION['cpost']); $mail = new MAIL5; $mail->From("info@tawasols.com", "tawasol"); // add to address //$mail->AddTo("anardes2020@gmail.com"); $mail->AddTo($emaills); // set subject $mail->Subject("Client info"); // set text message $mail->Text = array( 'content' => $text, // required 'charset' => 'utf-8', // optional 'encoding' => 'base64' // optional ); $mail->Html = array( 'content' => $comments, // required 'charset' => 'utf-8', // optional 'encoding' => 'base64' // optional ); $mail->Send(); $contactmessage = "مبروك