<?php
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);

define( 'BASE_URL' , __DIR__ . '/../..' );
define( 'APP_ROOT' , BASE_URL . '/app' );
define( 'ADMIN_ROOT' , BASE_URL . '/This_is_Admin_' );

require_once(BASE_URL . '/dbconnection.php');
require_once(BASE_URL . '/dev-control.php');

require_once(APP_ROOT . '/includes/functions.php');
require_once(APP_ROOT . '/includes/ip.php');


$apps_data = json_decode(file_get_contents($data_file), true);
$data_file = BASE_URL . "/This_is_Admin_/app-data.json";
$app_data = json_decode(file_get_contents($data_file), true);

foreach( $app_data as $key => $val ) {
	$$key = $val;
}

$registration = $reg_status == 1;
$payment = $withdraw_status == 1;
$vpn_required = $req_vpn == 1;

if($req_vpn == 3) {
    $vpn_required = null;
}

$cn_list = str_replace(' ', '', $cn_list);
$ALLOWED_LOCATIONS = explode(',', $cn_list);


$onetimepay = $onetimepay ?? 0;
$payment = $payment ?? true;
$recharge_user_auto_server = $recharge_user_auto_server ?? 0;
$fixedwithdraw = $fixedwithdraw ?? 0;
$wallet_notice = $wallet_notice ?? '';
