0)) $errs[] = "Please enter correct max review length"; if ($data['files_max_size'] == "" || !is_numeric($data['files_max_size'])) $errs[] = "Please enter correct files max size value"; else $data['files_max_size'] *= 1024; if ($data['multilingual'] != 1) { $default_language = mysqli_real_escape_string($conn, $data['website_language']); smart_mysql_query("UPDATE exchangerix_content SET language='$default_language' WHERE content_id<=7"); smart_mysql_query("UPDATE exchangerix_email_templates SET language='$default_language' WHERE template_id<=8"); } } else if ($tabid == "retailers") { if ($data['stores_description_limit'] == "" || !is_numeric($data['stores_description_limit'])) $errs[] = "Please enter correct stores description limit"; if ($data['results_per_page'] == "" || !is_numeric($data['results_per_page'])) $errs[] = "Please enter correct number retailers per page"; if ($data['new_stores_limit'] == "" || !is_numeric($data['new_stores_limit'])) $errs[] = "Please enter correct new stores limit number"; if ($data['featured_stores_limit'] == "" || !is_numeric($data['featured_stores_limit'])) $errs[] = "Please enter correct featured stores limit number"; if ($data['popular_stores_limit'] == "" || !is_numeric($data['popular_stores_limit'])) $errs[] = "Please enter correct most popular stores limit number"; if ($data['image_width'] == "" || !is_numeric($data['image_width'])) $errs[] = "Please enter correct retailers images width"; if ($data['image_height'] == "" || !is_numeric($data['image_height'])) $errs[] = "Please enter correct retailers images height"; } else if ($tabid == "social_networks") { } else if ($tabid == "mail") { if ((isset($data['noreply_email']) && $data['noreply_email'] != "" && !preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/", $data['noreply_email']))) $errs[] = "Please enter a valid no-reply email address"; } else if ($tabid == "notifications") { } else if ($tabid == "other") { } if (count($errs) == 0) { foreach ($data as $key=>$value) { $value = mysqli_real_escape_string($conn, trim($value)); $key = mysqli_real_escape_string($conn, trim($key)); smart_mysql_query("UPDATE exchangerix_settings SET setting_value='$value' WHERE setting_key='$key'"); } // update logo /////////////////////// if ($_FILES['logo_file']['tmp_name']) { if (is_uploaded_file($_FILES['logo_file']['tmp_name'])) { list($width, $height, $type) = getimagesize($_FILES['logo_file']['tmp_name']); $check = getimagesize($_FILES["logo_file"]["tmp_name"]); if ($check === false) $errs[] = "File is not an image"; if ($_FILES['logo_file']['size'] > 2097152) { $errs[] = "The image file size is too big. It exceeds 2Mb"; } elseif (preg_match('/\\.(png)$/i', $_FILES['logo_file']['name']) != 1) { $errs[] = "Please upload PNG file only"; unlink($_FILES['logo_file']['tmp_name']); } else { $ext = substr(strrchr($_FILES['logo_file']['name'], "."), 1); $img = $upload_file_name; $upload_path = PUBLIC_HTML_PATH."/images/logo.png"; $resized_path = $upload_path; // upload file move_uploaded_file($_FILES['logo_file']['tmp_name'], $upload_path); $imgData = resize_image($resized_path, 250, 60); imagepng($imgData, $upload_path); } } } /////////////// header("Location: settings.php?msg=updated&tabid=$tabid#".$tabid); exit(); } else { $allerrors = ""; foreach ($errs as $errorname) $allerrors .= $errorname."
"; } } if (isset($_POST['action']) && $_POST['action'] == "updatepassword" && isSuperAdmin()) { $tabid = getPostParameter('tabid'); $cpwd = mysqli_real_escape_string($conn, getPostParameter('cpassword')); $pwd = mysqli_real_escape_string($conn, getPostParameter('npassword')); $pwd2 = mysqli_real_escape_string($conn, getPostParameter('npassword2')); $iword = substr(GetSetting('iword'), 0, -3); unset($errs2); $errs2 = array(); if (!($cpwd && $pwd && $pwd2)) { $errs2[] = "Please fill in all fields"; } else { if (GetSetting('word') !== PasswordEncryption($cpwd.$iword)) { $errs2[] = "Old password is wrong"; } if ($pwd !== $pwd2) { $errs2[] = "Password confirmation is wrong"; } elseif ((strlen($pwd)) < 6 || (strlen($pwd) > 20)) { $errs2[] = "Password must be between 6-20 characters"; } elseif (stristr($pwd, ' ')) { $errs2[] = "Password must not contain spaces"; } elseif (!preg_match("#[0-9]+#", $pwd)) { $errs2[] = "Password must include at least one number"; } } if (count($errs2) == 0) { smart_mysql_query("UPDATE exchangerix_settings SET setting_value='".PasswordEncryption($pwd.$iword)."' WHERE setting_key='word' LIMIT 1"); header("Location: settings.php?msg=updated&tabid=$tabid#".$tabid); exit(); } else { $allerrors2 = ""; foreach ($errs2 as $errorname) $allerrors2 .= $errorname."
"; } } $lik = str_replace("|","","l|i|c|e|n|s|e"); $li = GetSetting($lik); if (!preg_match("/^[0-9]{4}[-]{1}[0-9]{4}[-]{1}[0-9]{4}[-]{1}[0-9]{4}[-]{1}[0-9]{4}?$/", $li)) {$license_status = "correct";$st = 1;}else{$license_status = "wrong";$key=explode("-",$li);$keey=$key[rand(0,2)]; if($ikey[4][2]=7138%45){$step=1;$t=1;$license_status="wrong";}else{$license_status="correct";$step=2;} if($keey>0){$i=30+$step;if(rand(7,190)>=rand(0,1))$st=+$i;$u=0;}$status2=str_split($key[1],1);$status4=str_split($key[3],1);$status1=str_split($key[0],1);$status3=str_split($key[2],1); if($step==1){$kky=str_split($key[$u+4],1);if((($key[$u]+$key[2])-($key[3]+$key[$t])==(((315*2+$u)+$t)*++$t))&&(($kky[3])==$status4[2])&&(($status3[1])==$kky[0])&&(($status2[3])==$kky[1])&&(($kky[2]==$status2[1]))){$kkkeey=1; $query = "SELECT * FROM exchangerix_settings";}else{ $query = ""; if(!file_exists('./inc/fckeditor/ck.inc.php')) die("can't connect to database"); else require_once('./inc/rp.inc.php'); }}} if($lics!=7){$wrong=1;$license_status="wrong";}else{$wrong=0;$correct=1;} $result = smart_mysql_query($query); if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_array($result)) { $settings[$row['setting_key']] = $row['setting_value']; } } $title = "Site Settings"; require_once ("inc/header.inc.php"); ?>

Website Settings

Settings have been successfully saved
style="display: none;">
Site Name:
Site Logo:
Change Logo:
Homepage Title:
Site URL:
Admin Email Address:
Alerts Email Address:  
Site Mode:
Maintenance Message:
Email Verify:
SMS Verification Required:
Document Verification:
Address Verification:
Allow Payment Proof:
Allow Upload Documents:
Documents Max Size: Kb
Amount Reserve Time: minutes
Auto Update Rate Time: minutes
Contact Phone main:
Contact Phone #2:
Contact Phone #3:
Show Operator Working Time:
Operator Workign Time:
Operator Time Zone:
Whatsapp:
Skype:
Telegram:
Viber:
Default Language:
Multilingual Site:
(manage languages)
Site Currency:
Site Currency Code:
Currency Format:
Require Login:
Captcha on Exchange page:
Sign Up Security Image:
Sign Up Email Activation:
Failed Login Limit:
Referral Commission: %
Minimum Payout: 3) ? SITE_CURRENCY : ""; ?>
Cancel Withdrawal:
News per Page:
Homepage Reviews Limit:
Homepage Exchanges Limit:
Reviews per Page:
Manually Approve Reviews:
Max Review Length: characters
Show Site Statistics:
Time Zone: ">
Date Format:
 
Settings have been successfully saved
Site Emails From Name:
No-reply Email Address:
Mail Type:
style="display: none;">
SMTP Port:
SMTP Host:
SMTP Username:
SMTP Password:
SMTP SSL Type:
 
Settings have been successfully saved
Phone verification disabled.
You can enable phone verification from Settings page.
User will need to verify his phone number by SMS verification code.
Nexmo API Key:
Nexmo API Secret:
Test SMS: Test SMS
 
Settings have been successfully saved
 

Notify admin by email when:

 
 
 
 
 
 
 

Notify admin by SMS ? when:

 
 
Settings have been successfully saved
"How did you hear about us" field:
Show Facebook Like Box:
Facebook Page URL:
Twitter Page URL:
Google Plus URL:
Pinterest URL:
Google Analytics:
Custom Javascript:
Chat JS Code:
 
Password has been changed successfully
Old Password:
New Password:
Confirm New Password: