Search (advanced search) | ||||
Use this Search form before posting, asking or make a new thread.
|
06-01-2017, 04:23 AM
Post: #1
|
|||
|
|||
[Help] Can you help me decode this
PHP Code: <?php |
|||
06-01-2017, 09:36 AM
Post: #2
|
|||
|
|||
RE: [Help] Can you help me decode this
Here you go:
PHP Code: <?php date_default_timezone_set('America/Chicago'); session_cache_limiter('none'); session_start(); require('config.php'); require 'mail/PHPMailerAutoload.php'; $mysqli = new mysqli($db_host, $db_username, $db_password,$db_name); if (mysqli_connect_errno($mysqli)) { exit(mysqli_connect_error()); } $protocol = (@$_SERVER["HTTPS"] == "on") ? "https://" : "http://"; $ssl = substr($site_url, 0, 5); $check_ssl = substr($ssl, -1); if($protocol == 'http://' and& $check_ssl == 's'){ header('Location: '.$site_url); exit; } if (substr($_SERVER['HTTP_HOST'], 0, 4) !== 'www.') { header('Location: '.$protocol.'www.'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit; } function appLang($lang) { global $mysqli,$sm; $result=array(); $lang = secureEncode($lang); $query = $mysqli->query("SELECT * FROM app_lang where lang_id = '".$lang."' ORDER BY id ASC"); while($row = $query->fetch_assoc()){ $result[] = array( "id" => $row['id'], "text" => $row['text'] ); } return $result; } $check_key1 = 0; $check_key2 = 0; $date = date('m/d/Y'); if (file_exists("/license.key")){ $check_key1 = 1; } if (file_exists("license.key")){ $check_key2 = 1; } $file = $site_url."license.key"; $file_headers = get_headers($file); if(strpos($file_headers[0], '404') !== false){ echo 'License.key file missing, please make sure its uploaded in your root files (near index.php)'; exit; } $licenseKey = file_get_contents($site_url."license.key"); if($date !== $licenseKey){ file_put_contents('license.key', $date); $url = 'https://www.premiumdatingscript.com/clients/client.php?id='.siteConfig('client').'&url='.$_SERVER['HTTP_HOST']; $ch = curl_init($url); curl_setopt($ch, CURLOPT_TIMEOUT, 2); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $data = curl_exec($ch); $data = json_decode($data); curl_close($ch); if(empty($data)){ $data = file_get_contents($url); $data=str_replace('},]',"}]",$data); $data = json_decode($data); } if($data->active == 0){ echo $data->reason; file_put_contents('license.key', ''); exit; } } $sm = array(); $sm['price'] = sitePrices(); $sm['basic'] = siteAccountsBasic(); $sm['premium'] = siteAccountsPremium(); $sm['config_email'] = configEmail(); $mobile = false; $sm['mobile']=0; $sm['config']['videocall'] = siteConfig('videocall'); $sm['config']['name'] = siteConfig('name'); $check_bar = substr($site_url, -1); if($check_bar == '/'){ $sm['config']['site_url'] = $site_url; } else { $sm['config']['site_url'] = $site_url.'/'; } $sm['version'] = siteConfig('version'); $sm['config']['facebook'] = $site_facebook; $sm['config']['twitter'] = $site_twitter; $sm['config']['google'] = $site_google; $sm['config']['android'] = $app_android; $sm['config']['ios'] = $app_ios; $sm['config']['theme'] = siteConfig('theme'); $sm['config']['logo_landing'] = siteConfig('logo_landing'); $sm['config']['fb_app_ok'] = 1; $sm['config']['theme_mobile'] = siteConfig('theme_mobile'); $sm['config']['theme_email'] = siteConfig('theme_email'); $sm['config']['theme_landing'] = siteConfig('theme_landing'); $sm['config']['logo'] = siteConfig('logo'); $sm['config']['main_color'] = siteConfig('main_color'); $sm['config']['title'] = siteConfig('title'); $sm['config']['description'] = siteConfig('description'); $sm['config']['keywords'] = siteConfig('keywords'); $sm['config']['lang'] = siteConfig('lang'); $sm['config']['photo_review'] = siteConfig('photo_review'); $sm['config']['paypal'] = siteConfig('paypal'); $sm['config']['paygol'] = siteConfig('paygol'); $sm['config']['paygol'] = siteConfig('paygol'); $sm['config']['stripe'] = siteConfig('stripe_pub'); $sm['config']['fortumo'] = siteConfig('fortumo_service'); $sm['config']['currency'] = siteConfig('currency'); $sm['config']['free_credits'] = siteConfig('free_credits'); $sm['config']['free_premium'] = siteConfig('free_premium'); $sm['config']['email'] = siteConfig('email'); $sm['config']['email_verification'] = siteConfig('email_verification'); $sm['config']['theme_url'] = $site_url . '/themes/' . $sm['config']['theme']; $sm['config']['theme_url_landing'] = $site_url . '/themes/' . $sm['config']['theme_landing']; $sm['config']['theme_url_mobile'] = $site_url . '/themes/' . $sm['config']['theme_mobile']; $sm['config']['theme_url_email'] = $site_url . '/themes/' . $sm['config']['theme_email']; $sm['config']['ajax_path'] = $site_url . '/requests'; $sm['lang'] = siteLang($sm['config']['lang']); $sm['alang'] = appLang($sm['config']['lang']); $sm['twoo_lang'] = siteTwooLang($sm['config']['lang']); if (!isset($_SESSION['lang'])) { $_SESSION['lang'] = $sm['config']['lang']; } $logged = false; $user = array(); $available_languages = availableLanguages(); $langs = prefered_language($available_languages, $_SERVER["HTTP_ACCEPT_LANGUAGE"]); $lang = key($langs); if($lang != ''){ $_SESSION['lang'] = checkUserLang($lang); $sm['lang'] = siteLang(checkUserLang($lang)); $sm['alang'] = appLang(checkUserLang($lang)); } else{ $sm['lang'] = siteLang($sm['config']['lang']); $sm['alang'] = appLang($sm['config']['lang']); } if (!empty($_SESSION['user']) and& is_numeric($_SESSION['user']) and& $_SESSION['user'] > 0) { $user_id = secureEncode($_SESSION['user']); $logged = true; getUserInfo($user_id,0); checkUserPremium($user_id); $sm['user_notifications'] = userNotifications($user_id); $sm['lang'] = siteLang($sm['user']['lang']); $sm['alang'] = appLang($sm['user']['lang']); $sm['twoo_lang'] = siteTwooLang($sm['user']['lang']); $mysqli->query("UPDATE users SET lang = 1 WHERE id = 1"); } $sm['logged'] = $logged; if (!empty($_GET['lang'])) { $slang = secureEncode($_GET['lang']); $_SESSION['lang'] = $slang; $sm['lang'] = siteLang($_SESSION['lang']); $sm['alang'] = appLang($_SESSION['lang']); $sm['twoo_lang'] = siteTwooLang($_SESSION['lang']); if ($logged == true) { $mysqli->query("UPDATE users SET lang = '".$slang."' WHERE id = '".$user_id."'"); } } if ($logged == false) { unset($_SESSION['user']); unset($user); } getPlugins('core_file'); |
|||
06-01-2017, 11:29 PM
Post: #3
|
|||
|
|||
RE: [Help] Can you help me decode this
Share the script dont be a d**k
|
|||
06-02-2017, 01:33 AM
Post: #4
|
|||
|
|||
RE: [Help] Can you help me decode this
I will bro :)
|
|||
06-02-2017, 05:49 AM
Post: #5
|
|||
|
|||
RE: [Help] Can you help me decode this | |||
06-02-2017, 06:59 AM
Post: #6
|
|||
|
|||
RE: [Help] Can you help me decode this
share man what you are waiting for
|
|||