\'.$result->response.\'
\'.$result->contact_email.\'
\'.$result->request_code.\'
/* Decoded by unphp.net */
?>b'Varsayılan görünüm dosyalarını bulamıyorum!
Varsayılan index dosya ismi: ".DEFAULT_INDEX."
Varsayılan 404 hata dosya ismi: ".ERROR_PAGE."");
header(\'Content-Type: text/html; charset=utf-8\');
require_once("class/pdo.class.php");
require_once("class/wmvsmtp.class.php");
ini_set(\'display_errors\', SHOW_PHP_ERRORS);
ini_set(\'display_startup_errors\', SHOW_PHP_ERRORS);
error_reporting(SHOW_PHP_ERRORS);
if (SHOW_PHP_ERRORS==-1) {
set_error_handler("exception_error_handler");
}
if (DB_HOST!==""){
$db=new wmvpdo(DB_HOST, DB_USER, DB_PASS, DB_NAME, DB_PERFIX);
}
if (SMTP_HOST!==""){
$mail=new wmvsmtp(SMTP_HOST, SMTP_USERNAME, SMTP_PASSWORD, SMTP_SECURE, SMTP_PORT, SMTP_SITENAME, SMTP_DEBUG);
}
function base_url($adress=""){
$adress=ltrim($adress, \'/\');
if (SITE_URL == "") {
return rtrim(url(), \'/\').\'/\'.$adress;
}else {
return rtrim(SITE_URL, \'/\').\'/\'.$adress;
}
}
function this_url($withoutget=FALSE){
$request=$withoutget==FALSE?$_SERVER[\'REQUEST_URI\']:$_SERVER[\'PATH_INFO\'];
if (SITE_URL == "") {
$siteurl=rtrim(url(), \'/\');
}else {
$siteurl=trim(SITE_URL, \'/\');
}
return $siteurl.$request;
}
function dist_url($dist=""){
$dist=ltrim($dist, \'/\');
return base_url(rtrim(DIST_FOLDER, \'/\')).\'/\'.$dist;
}
function action_url($data=array()){
$query=http_build_query($data);
$query_action=base_url(\'wmv_core/action.php?\').$query;
return rtrim($query_action, \'?\');
}
function upload_url($upload=""){
$upload=ltrim($upload, \'/\');
return base_url(rtrim(UPLOAD_FOLDER, \'/\')).\'/\'.$upload;
}
function upload_dir($filename=""){
$fullpath=str_replace(trim(" \ "), "/", dirname(__DIR__));
return $fullpath.\'/\'.trim(UPLOAD_FOLDER, "/")."/".$filename;
}
function url(){
return sprintf(
"%s://%s",
isset($_SERVER[\'HTTPS\']) && $_SERVER[\'HTTPS\'] != \'off\' ? \'https\' : \'http\',
$_SERVER[\'SERVER_NAME\']
);
}
function exception_error_handler($errno, $errstr, $errfile, $errline ) {
throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
}
function validate_username($str="")
{
$allowed = array(".", "-", "_"); // you can add here more value, you want to allow.
if(ctype_alnum(str_replace($allowed, \'\', $str ))) {
return $str;
} else {
return FALSE;
}
}
function wmv_activate($site_id="", $key="") {
if (!empty($_SERVER[\'HTTP_CLIENT_IP\'])) {
$user_ip = $_SERVER[\'HTTP_CLIENT_IP\'];
} elseif (!empty($_SERVER[\'HTTP_X_FORWARDED_FOR\'])) {
$user_ip = $_SERVER[\'HTTP_X_FORWARDED_FOR\'];
} else {
$user_ip = $_SERVER[\'REMOTE_ADDR\'];
}
$url = \'https://license.webmavie.org/api.php\';
$ch = curl_init($url);
$data = array(
\'route\' => \'lisence_controller\',
\'script_name\' => \'coinwin\',
\'id\' => $site_id,
\'key\' => $key,
\'site_url\' => str_replace("www.", "", $_SERVER[\'SERVER_NAME\']),
\'server_ip\' => $_SERVER[\'SERVER_ADDR\'],
\'user_ip\' => $user_ip,
\'server_date\' => DATE(\'d-m-Y H:i\'),
);
$payload = json_encode($data);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(\'Content-Type:application/json\'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
$result=json_decode($result);
if ($result->status == 0) {
echo \'