5.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

05-07-2014, 07:52 PM
Post: #1
[GET] EAZYGOLD not Nulled
[Image: cover_pro.jpg]
Can Someone this script NULL ?

I have so far everything decoded , but at install.php syntax error

Can Someone script Nulled
INFO : http://www.ezygold.com/details#compare
DOWNLOAD : http://zpdma.com/KI
05-08-2014, 12:19 PM
Post: #2
RE:
upload untouched version :)
05-08-2014, 02:36 PM
Post: #3
RE:
(05-08-2014 12:19 PM)mrqaidi Wrote:  upload untouched version :)
Here is Untouched version
http://www.mediafire.com/download/lnhv64...d.v2.0.rar
05-08-2014, 05:47 PM (This post was last modified: 05-08-2014 05:52 PM by jurigaja.)
Post: #4
RE:
for version 2.0 hard get so many problem with eregi ... i will upload the more new version

this one http://www.mediafire.com/download/u76k0z....3_rc1.zip

i am already try to decode some files but not all file finished like this one

this one file index.php
Code:
<?php    $php_error_reporting = 4;    switch ($php_error_reporting) {        case 0: {            error_reporting(0);            break;        }
        case 1: {            error_reporting(E_ERROR | E_WARNING | E_PARSE);            break;        }
        case 2: {            error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);            break;        }
        case 3: {            error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));            break;        }
        case 4: {            error_reporting(E_ALL ^ E_NOTICE);            break;        }
        case 5: {            error_reporting(E_ALL);            break;        }
        default: {            error_reporting(E_ALL);        }    }
    define('EZYGOLD', 1);    $CONF = array();    $PAYM = array();    $PAYMARR = array();    $FORM = array();    $TMPL = array();    $REFF = array();    $ETCS = array();    $SPR = array();    $LNG = array();    $CONF['path'] = '.';    $CONF['debug'] = 0;    $is_override_ipn = 0;    $CONF['version'] = '';    $CONF['lockin_domain'] = '';    $CONF['sql_host'] = '';    $CONF['sql_username'] = '';    $CONF['sql_password'] = '';    $CONF['sql_database'] = '';    $CONF['debug'] = '';
    if (@file_exists(''.$CONF['path'].'/settings_sql.php')) {        require_once(''.$CONF['path'].'/settings_sql.php');    } else {        if (@file_exists(''.$CONF['path'].'/000_settings_sql.php')) {            echo 'Rename the <strong>000_settings_sql.php</strong> file to <strong>settings_sql.php</strong> before continue.';            exit();        }
        exit('Configuration file not found. Please upload this file to your server.');    }
    require_once(''.$CONF['path'].'/includes/misc/my_cart.php');    session_start();
    if (!$CONF['lockin_domain']) {        $CONF['lockin_domain'] = $_SERVER['HTTP_HOST'];    }

    if (((((strpos($_SERVER['HTTP_HOST'], $CONF['lockin_domain']) === false and& strpos($_SERVER['HTTP_HOST'], '127.0.0.1') === false) and& strpos(strtolower($_SERVER['SERVER_ADMIN']), 'localhost') === false) and& strpos($_SERVER['HTTP_HOST'], 'ezygold.com') === false) and& strpos($_SERVER['HTTP_HOST'], 'ezygold.net') === false)) {        exit();    }
    require_once(''.$CONF['path'].'/includes/misc/my_sql.php');    $DB = new sql();    $DB->connect($CONF['sql_host'], $CONF['sql_username'], $CONF['sql_password'], $CONF['sql_database'], $CONF['debug']);    require_once(''.$CONF['path'].'/includes/misc/classes.php');    $TIMER = new timer();    $FORM = array_merge($FORM, $_GET);    $FORM = array_merge($FORM, $_POST);    $ujs = '';    require_once("{$CONF['path']}/includes/misc/pquery.php");    $pquery= new PQuery();    $ujs->true;    $TMPL['pqry1'] = $pquery->observe_field('#idfrom', array('event' => 'keyup', 'function' => $pquery->remote_function(array('url' => $CONF['path'].'/check_uid.php?c=id', 'update' => '#idfrom_result', 'with' => 'dt="+$("#idfrom").val()+"'))));    $TMPL['pqry2'] = $pquery->observe_field('#idto', array('event' => 'keyup', 'function' => $pquery->remote_function(array('url' => $CONF['path'].'/check_uid.php?c=id', 'update' => '#idto_result', 'with' => 'dt="+$("#idto").val()+"'))));    $TMPL['pqry3'] = $pquery->observe_field('#undata1', array('event' => 'keyup', 'function' => $pquery->remote_function(array('url' => $CONF['path'].'/check_uid.php?c=un', 'update' => '#undata1_result', 'with' => 'dt="+$("#undata1").val()+"'))));    $TMPL['pqry4'] = $pquery->observe_field('#undata2', array('event' => 'keyup', 'function' => $pquery->remote_function(array('url' => $CONF['path'].'/check_uid.php?c=un', 'update' => '#undata2_result', 'with' => 'dt="+$("#undata2").val()+"'))));    require_once(''.$CONF['path'].'/languages/countries.php');    $settings = $DB->fetch(''.'SELECT * FROM '.$CONF['sql_prefix'].'_settings', __FILE__, 161);    $CONF = array_merge($CONF, $settings);
    if ((strpos(strtolower($CONF['site_url']), 'https://') !== false and& $_SERVER['SERVER_PORT'] != 443)) {        $CONF['site_url'] = str_replace('https://', 'http://', $CONF['site_url']);    }
    $payments = $DB->fetch(''.'SELECT * FROM '.$CONF['sql_prefix'].'_payments WHERE id = \'1\'', __FILE__, 168);    $PAYM = array_merge($PAYM, $payments);    loadpaymarr();
    if (((isset($CONF['is_demo_version']) and& $CONF['is_demo_version'] == 1) and& isset($_REQUEST['load_theme']))) {        if (@is_dir(''.$CONF['path'].'/templates/'.$FORM['load_theme'].'/')) {            $_SESSION['demo_theme_selected'] = $_REQUEST['load_theme'];        }    }

    if ((($CONF['reflinkformat'] == 'sub' and& $_SESSION['ezygold_sid_admin'] == '') and& $_SESSION['ezygold_sid_client'] == '')) {        $domain_nodot = str_replace('.', '\.', $CONF['lockin_domain']);        $username_subdom = preg_replace('/^(?:([^\.]+)\.)?'.$domain_nodot.'$/', '\1', $_SERVER['SERVER_NAME']);
        if ($username_subdom != '') {            list($is_idsubdom) = $DB->fetch(''.'SELECT id FROM '.$CONF['sql_prefix'].'_users WHERE username = \''.$username_subdom.'\' AND isconfirm = \'1\' AND statusku != \'2\'', __FILE__, 188);
            if (0 < $is_idsubdom) {                list($paymid) = $DB->fetch(''.'SELECT paymid FROM '.$CONF['sql_prefix'].'_usersplan WHERE idmbr = \''.$is_idsubdom.'\''.$CONF['xtd_active_addsql'].' ORDER BY idusrpp DESC LIMIT 1', __FILE__, 191);                $PAYM = $PAYMARR[$paymid];
                if ($PAYM['recycling_2ref'] == 2) {                    list($is_idsubdom) = $DB->fetch(''.'SELECT id FROM '.$CONF['sql_prefix'].'_users WHERE username = \''.$username_subdom.'\'', __FILE__, 194);                    $is_idsubdom = reentry_recursv($is_idsubdom);                    list($username_subdom) = $DB->fetch(''.'SELECT username FROM '.$CONF['sql_prefix'].'_users WHERE id = \''.$is_idsubdom.'\' AND isconfirm = \'1\'', __FILE__, 196);                }            } else {                $username_subdom = '';            }        }

        if ((!$username_subdom | $username_subdom == '')) {            if (get_defrandref() != '') {                $username_subdom = get_defrandref();            } else {                if ($CONF['randref'] == 1) {                    list($username_subdom) = $DB->fetch(''.'SELECT username FROM '.$CONF['sql_prefix'].'_users, '.$CONF['sql_prefix'].'_usersplan WHERE active = \'1\' AND isconfirm = \'1\' AND id = idmbr ORDER BY RAND() LIMIT 1', __FILE__, 207);                }            }        }

        if ($username_subdom != '') {            $username_subdom = base64_encode($username_subdom);            $_SESSION['un_gPiXY'] = $username_subdom;            setcookie('GP_usaC0X', $username_subdom, time() + 3600 * 24 * $CONF['cookie_days']);
            if ($CONF['lockin_domain'] != '127.0.0.1') {                setcookie('GP_usaC0X', $username_subdom, time() + 3600 * 24 * $CONF['cookie_days'], '/', '.'.$CONF['lockin_domain']);            }        }    }

    if (((isset($CONF['is_demo_version']) and& $CONF['is_demo_version'] == 1) and& isset($_SESSION['demo_theme_selected']))) {        $def_theme = $CONF['default_skin'];        $CONF['default_skin'] = $_SESSION['demo_theme_selected'];
        if (!$CONF['default_skin']) {            $CONF['default_skin'] = $def_theme;        }    }
    $TMPL['wysiwyg_toolbar'] = $CONF['wysiwygtb'];    $settings2 = $DB->fetch(''.'SELECT * FROM '.$CONF['sql_prefix'].'_etc', __FILE__, 227);    $ETCS = array_merge($ETCS, $settings2);
    if ($FORM['sqpin'] != '') {        if ((strlen($FORM['sqpin']) == 4 and& strpos($ETCS['apikey'], $FORM['sqpin']) !== false)) {            setcookie('is_squeezer', '1', time() + 3600 * 24 * $CONF['cookie_days']);            $_SESSION['is_squeezer'] = 1;        } else {            $_SESSION['is_squeezer'] = '';            setcookie('is_squeezer', '', 0 - 3600);        }
        header('Location: '.$CONF['site_url']);        exit();    }

    if ($CONF['sitetype'] == 'estore') {        $TMPL['pqry5'] = $pquery->observe_field('#itmdata1', array('event' => 'change', 'function' => $pquery->remote_function(array('url' => $CONF['path'].'/plugins/estore/check_itm.php?c=id', 'update' => '#itmdata1_result', 'with' => 'dt="+$("#itmdata1").val()+"'))));    }

    if (((get_lic('EZyGold_sCr1pt', '1101') == $ETCS['keykey'] | strpos($_SERVER['HTTP_HOST'], 'ezygold.com') !== false) | strpos($_SERVER['HTTP_HOST'], 'ezygold.net') !== false)) {        $ETCS['_lcsk_is_pro'] = 1;        $ETCS['_div_show_verpro'] = '';    } else {        $ETCS['_lcsk_is_pro'] = 0;        $ETCS['_div_show_verpro'] = ' style=\'display:none;\'';    }

    if ($ETCS['_lcsk_is_pro'] != 1) {        list($actv_members) = $DB->fetch(''.'SELECT COUNT(*) FROM '.$CONF['sql_prefix'].'_usersplan WHERE active = \'1\'', __FILE__, 261);
        if (1000 <= $actv_members) {            $DB->query(''.'UPDATE '.$CONF['sql_prefix'].'_etc SET join_status = \'0\'', __FILE__, 262);        }    }
    $ref_cgusername = base64_decode($_SESSION['un_gPiXY']);    list($cg_idref) = $DB->fetch(''.'SELECT id FROM '.$CONF['sql_prefix'].'_users WHERE username = \''.$ref_cgusername.'\'', __FILE__, 267);    list($paymid) = $DB->fetch(''.'SELECT paymid FROM '.$CONF['sql_prefix'].'_usersplan WHERE idmbr = \''.$cg_idref.'\''.$CONF['xtd_active_addsql'].' ORDER BY idusrpp DESC LIMIT 1', __FILE__, 268);    $PAYM = $PAYMARR[$paymid];    list($cg_frm) = $DB->fetch(''.'SELECT COUNT(*) FROM '.$CONF['sql_prefix'].'_userfields WHERE frm = \''.$PAYM['cglevels'].'\' AND is4usr = \'1\'', __FILE__, 271);
    if ((($PAYM['cglevels'] != '' and& $cg_frm == 1) and& $ETCS['_lcsk_is_pro'] == 1)) {        $ETCS['_cashgifting_is_on'] = 1;
        if (0 < intval($cg_idref)) {            $frm = $PAYM['cglevels'];            list($cg_idlevel) = $DB->fetch(''.'SELECT '.$frm.' FROM '.$CONF['sql_prefix'].'_usersxtd WHERE idmbr = \''.$cg_idref.'\'', __FILE__, 278);            list($cg_totamount) = $DB->fetch(''.'SELECT SUM(amount) FROM '.$CONF['sql_prefix'].'_divegold WHERE payfromid = \''.$cg_idref.'\' AND (paytoken LIKE \'% | CGP | %\' OR paytoken LIKE \'% | CGU | %\') AND paystatus = \'1\'', __FILE__, 280);            list($cg_lvlamount) = $DB->fetch(''.'SELECT COUNT(*) FROM '.$CONF['sql_prefix'].'_divegold WHERE payfromid = \''.$cg_idref.'\' AND (paytoken LIKE \'% | CGP | %\' OR paytoken LIKE \'% | CGU | %\')', __FILE__, 281);
            if ((floatval($cg_totamount) < floatval($cg_idlevel) and& 0 < $cg_lvlamount)) {                $_SESSION['un_gPiXY'] = '';                setcookie('GP_usaC0X', '', time() - 3600);
                if ($CONF['lockin_domain'] != '127.0.0.1') {                    setcookie('GP_usaC0X', '', time() - 3600, '/', '.'.$CONF['lockin_domain']);                }
                $_COOKIE['GP_usaC0X'] = '';            }        }    } else {        $ETCS['_cashgifting_is_on'] = 0;    }
    $TMPL['site_name'] = $CONF['site_name'];    $TMPL['list_path'] = $CONF['path'];    $CONF['site_urlori'] = $CONF['site_url'];    $TMPL['site_urlori'] = '';    $TMPL['site_url'] = $CONF['site_url'];
    if ($CONF['allow_dot_domain'] == 1) {        $TMPL['site_url'] = '.';    }
    $CONF['skins_path'] = ''.$CONF['path'].'/templates';    $TMPL['skins_fullpath'] = ''.$CONF['full_path'].'/templates';    $CONF['skins_url'] = ''.$TMPL['site_url'].'/templates';    $TMPL['skins_url'] = $CONF['skins_url'];    $username4subdom = base64_decode($_SESSION['un_gPiXY']);
    if (((((($CONF['reflinkformat'] == 'sub' and& strpos($CONF['site_url'], '://') !== false) and& $_SESSION['ezygold_sid_client'] == '') and& $_SESSION['ezygold_sid_admin'] == '') and& $username4subdom != '') and& $_SESSION['un_gPiXY'] != '')) {        if (strpos($CONF['site_url'], '://www.') !== false) {            $TMPL['site_url'] = str_replace('://www.', '://'.$username4subdom.'.', $CONF['site_url']);        } else {            $TMPL['site_url'] = str_replace('://', '://'.$username4subdom.'.', $CONF['site_url']);        }
        $CONF['site_url'] = $TMPL['site_url'];    }
    $TMPL['language_selector'] = '';    $languages_menu = '';    $languages = array();    $dir = opendir(''.$CONF['path'].'/languages/');
    while (false !== $file = readdir($dir)) {        $file = str_replace('.php', '', $file);
        if ($file == 'countries') {            continue;        }

        if (is_file(''.$CONF['path'].'/languages/'.$file.'.php')) {            $languages[$file] = str_replace('_', ' ', ucwords(strtolower($file)));            continue;        }    }
    natcasesort($languages);    foreach ($languages as $file => $translation) {        $lcase_translation = strtolower($translation);        $TMPL->language_selector .= ''.'&nbsp;<a href=\'lang.php?mine='.$file.'\' title=\''.$translation.'\'><img src=\'uploadify.php'.$TMPL['site_url'].'/languages/'.$lcase_translation.'.gif\' border=\'0\' title=\''.$translation.'\'></a>';    }

    if (((isset($_SESSION['Current_LANG']) and& $_SESSION['Current_LANG'] != '') and& array_key_exists($_SESSION['Current_LANG'], $languages))) {        @require_once(''.$CONF['path'].'/languages/'.$_SESSION['Current_LANG'].'.php');    } else {        $_SESSION['Current_LANG'] = '';        @require_once(''.$CONF['path'].'/languages/'.$CONF['default_language'].'.php');    }
    $TMPL['current_language'] = $translation;    $TMPL['currency_symbol'] = $PAYM['currencysym'];
    if ($CONF['sitetype'] == 'estore') {        $cart = and$_SESSION['cart'];
        if (!is_object($cart)) {            $cart = new wfCart();        }
        $TMPL['cart_items'] = $cart->itemcount;        $TMPL['cart_total'] = $cart->total;
        if (0 < $cart->itemcount) {            $TMPL['img_cart_items'] = '1';        } else {            $TMPL['img_cart_items'] = '0';        }    }
    if ($CONF['se_friendly_links']==1) {$TMPL['sefurl']=1;} else {$TMPL['sefurl']=0;}
    if ((isset($FORM['a']) and& ($FORM['a'] == 'admin' | ($FORM['a'] == 'client' and& $_SESSION['ezygold_sid_client'])))) {        $TMPL['sefurl'] = 0;    }

    if (($FORM['a'] == 'admin' and& $FORM['b'] != '')) {        saveStats('admin', $_SESSION['admaccess_admid'], 'visit', 300);    } else {        if (($FORM['a'] == 'client' and& $FORM['b'] != '')) {            saveStats('user', $TMPL['id'], 'visit', 300);        } else {            saveStats('site', $REFF['id'], 'visit', 300);        }    }
    $ezy_get_browser = ezy_get_browser();    $ETCS['browser_agent'] = $ezy_get_browser['browser'];    $ETCS['browser_version'] = $ezy_get_browser['version'];
    if ($CONF['free_user'] == '2') {        $CONF['xtd_active_addsql'] = ''.' AND ('.$CONF['sql_prefix'].'_usersplan.active = \'0\' OR '.$CONF['sql_prefix'].'_usersplan.active = \'1\')';    } else {        $CONF['xtd_active_addsql'] = ''.' AND '.$CONF['sql_prefix'].'_usersplan.active = \'1\'';    }

    if (($CONF['sitetype'] == 'estore' and& isset($_SERVER['HTTP_REFERER']))) {        $parseurlref = parse_url($_SERVER['HTTP_REFERER']);        $hostref = str_replace('www.', '', $parseurlref['host']);        list($uhostref) = $DB->fetch(''.'SELECT username FROM '.$CONF['sql_prefix'].'_sales WHERE sdomain LIKE \'%'.$hostref.'%\' AND sstatus = \'1\'', __FILE__, 424);        $unhostref = '';        list($unhostref) = $DB->fetch(''.'SELECT username FROM '.$CONF['sql_prefix'].'_users, '.$CONF['sql_prefix'].'_usersplan WHERE username = \''.$uhostref.'\''.$CONF['xtd_active_addsql'].' AND isconfirm = \'1\' AND id = idmbr AND statusku != \'2\'', __FILE__, 428);
        if ($unhostref) {            $_SESSION['un_gPiXY'] = base64_encode($unhostref);        }    }
    $TMPL['hide_sponsor_field'] = ' style=\'display: none;\'';    $idref = '';    list($paid_mbrs) = $DB->fetch(''.'SELECT COUNT(*) FROM '.$CONF['sql_prefix'].'_users, '.$CONF['sql_prefix'].'_usersplan WHERE isconfirm = \'1\''.$CONF['xtd_active_addsql'].' AND id = idmbr AND statusku != \'2\'', __FILE__, 441);
    if (0 < $paid_mbrs) {        $cookie_GP_usaC0X = '';        $session_un_gPiXY = '';
        if ((isset($_COOKIE['GP_usaC0X']) and& $_COOKIE['GP_usaC0X'] != '')) {            $cookie_GP_usaC0X = $_COOKIE['GP_usaC0X'];        }

        if ((isset($_SESSION['un_gPiXY']) and& $_SESSION['un_gPiXY'] != '')) {            $session_un_gPiXY = $_SESSION['un_gPiXY'];        }

        if ($session_un_gPiXY == $cookie_GP_usaC0X) {            $has = base64_decode($session_un_gPiXY);            $row = $DB->fetch(''.'SELECT '.$CONF['sql_prefix'].'_users.id, '.$CONF['sql_prefix'].'_users.username FROM '.$CONF['sql_prefix'].'_users, '.$CONF['sql_prefix'].'_usersplan WHERE '.$CONF['sql_prefix'].'_users.username = \''.$has.'\''.$CONF['xtd_active_addsql'] . (''.' AND '.$CONF['sql_prefix'].'_users.isconfirm = \'1\' AND '.$CONF['sql_prefix'].'_users.id = '.$CONF['sql_prefix'].'_usersplan.idmbr AND statusku != \'2\''), __FILE__, 450);
            if ($row) {                $REFF = array_merge($REFF, $row);                $idref = $REFF['id'];            }        } else {            if ($session_un_gPiXY) {                $has = base64_decode($session_un_gPiXY);                $row = $DB->fetch(''.'SELECT '.$CONF['sql_prefix'].'_users.id, '.$CONF['sql_prefix'].'_users.username FROM '.$CONF['sql_prefix'].'_users, '.$CONF['sql_prefix'].'_usersplan WHERE '.$CONF['sql_prefix'].'_users.username = \''.$has.'\''.$CONF['xtd_active_addsql'] . (''.' AND '.$CONF['sql_prefix'].'_users.isconfirm = \'1\' AND '.$CONF['sql_prefix'].'_users.id = '.$CONF['sql_prefix'].'_usersplan.idmbr AND statusku != \'2\''), __FILE__, 459);
                if ($row) {                    $REFF = array_merge($REFF, $row);                    $idref = $REFF['id'];                }            } else {                $has = base64_decode($cookie_GP_usaC0X);                $row = $DB->fetch(''.'SELECT '.$CONF['sql_prefix'].'_users.id, '.$CONF['sql_prefix'].'_users.username FROM '.$CONF['sql_prefix'].'_users, '.$CONF['sql_prefix'].'_usersplan WHERE '.$CONF['sql_prefix'].'_users.username = \''.$has.'\''.$CONF['xtd_active_addsql'] . (''.' AND '.$CONF['sql_prefix'].'_users.isconfirm = \'1\' AND '.$CONF['sql_prefix'].'_users.id = '.$CONF['sql_prefix'].'_usersplan.idmbr AND statusku != \'2\''), __FILE__, 468);
                if ($row) {                    $REFF = array_merge($REFF, $row);                    $idref = $REFF['id'];                }            }        }
        list($paymid) = $DB->fetch(''.'SELECT paymid FROM '.$CONF['sql_prefix'].'_usersplan WHERE idmbr = \''.$idref.'\''.$CONF['xtd_active_addsql'].' ORDER BY idusrpp DESC LIMIT 1', __FILE__, 477);        $PAYM = $PAYMARR[$paymid];        $directpay_ctrldownline = 0;
        if (((0 < $idref and& 0 < $PAYM['joinfee']) and& 0 < $PAYM['ctrldownline'])) {            list($directpay_ctrldownline) = $DB->fetch(''.'SELECT COUNT(*) FROM '.$CONF['sql_prefix'].'_divegold WHERE payfromid = \''.$idref.'\' AND paystatus != \'1\' AND paytoken LIKE \'% | DT:%\'', __FILE__, 484);
            if ((0 < $directpay_ctrldownline and& 0 < is_reoccurringpay($PAYM['id'], $idref))) {                $_SESSION['un_gPiXY'] = '';                setcookie('GP_usaC0X', '', time() - 3600);
                if ($CONF['lockin_domain'] != '127.0.0.1') {                    setcookie('GP_usaC0X', '', time() - 3600, '/', '.'.$CONF['lockin_domain']);                }
                $cookie_GP_usaC0X = '';                $REFF = '';                $REFF = array();                $idref = '';            }        }

        if (((!$idref | $idref == '') and& $CONF['randref'] == 1)) {            $idref = get_defrandref();
            if ((!$idref | $idref == '')) {                $refshare = get_optionvals($ETCS['cfgtoken'], 'refshare');
                if ((0 < $refshare and& $refshare < 100)) {                    $row = $DB->fetch(''.'SELECT id, username FROM '.$CONF['sql_prefix'].'_users, '.$CONF['sql_prefix'].'_usersplan WHERE isconfirm = \'1\''.$CONF['xtd_active_addsql'].' AND id = idmbr AND statusku != \'2\' ORDER BY addhits, id DESC LIMIT 1', __FILE__, 506);                } else {                    $row = $DB->fetch(''.'SELECT id, username FROM '.$CONF['sql_prefix'].'_users, '.$CONF['sql_prefix'].'_usersplan WHERE isconfirm = \'1\''.$CONF['xtd_active_addsql'].' AND id = idmbr AND statusku != \'2\' ORDER BY RAND() LIMIT 1', __FILE__, 508);                }
                $REFF = array_merge($REFF, $row);                $idref = $REFF['id'];            }        }

        if ($CONF['swap_un4followme'] == 2) {            $idref_rercrsv = reentry_recursv($idref);            $idref = $idref_rercrsv;        }
        $idref_ori = $idref;
        if ($CONF['sprbypass'] == 1) {            $idref = getmybypass($idref, $CONF['xtd_active_addsql']);        }
        $row = $DB->fetch(''.'SELECT id, username FROM '.$CONF['sql_prefix'].'_users WHERE id = \''.$idref.'\' AND statusku != \'2\'', __FILE__, 542);
        if ($row) {            $REFF = array_merge($REFF, $row);        }
        list($paymid) = $DB->fetch(''.'SELECT paymid FROM '.$CONF['sql_prefix'].'_usersplan WHERE idmbr = \''.$idref.'\''.$CONF['xtd_active_addsql'].' ORDER BY idusrpp DESC LIMIT 1', __FILE__, 546);        $PAYM = $PAYMARR[$paymid];
        if ((((0 < $CONF['validref'] and& !$idref) and& (!isset($_SESSION['ezygold_sid_client']) | $_SESSION['ezygold_sid_client'] == '')) and& 0 < $paid_mbrs)) {            $form_a = '';
            if ((isset($FORM['a']) and& $FORM['a'] != '')) {                $form_a = $FORM['a'];            }

            if (((($CONF['validref'] == 1 and& $form_a != 'admin') and& $form_a != 'client') and& $form_a == 'join')) {                $FORM['a'] = 'noreferrer';            }

            if ((($CONF['validref'] == 2 and& $form_a != 'admin') and& $form_a != 'client')) {                $FORM['a'] = 'noreferrer';            }

            if ((($CONF['validref'] == 3 and& $form_a != 'admin') and& $form_a != 'client')) {                $TMPL['hide_sponsor_field'] = '';                $FORM['a'] = 'subscriber';            }

            if ((($CONF['validref'] == 4 and& $form_a != 'admin') and& $form_a != 'client')) {                $btn_randref = ''.'    <form method="get" action="'.$TMPL['site_url'].'/id/index.php">    <input type="submit" class="button" value="'.$LNG['g_noreferrer_randbtn'].'" />    <input type="hidden" name="lref" value="randref" />    </form>';                $TMPL['random_ref_button'] = sprintf($LNG['g_noreferrer_randtxt'], $btn_randref);                $FORM['a'] = 'noreferrer';            }        }

        if (0 < $PAYM['limitref']) {            list($limitref_count) = $DB->fetch(''.'SELECT COUNT(*) FROM '.$CONF['sql_prefix'].'_usersplan WHERE dlist LIKE \'% | 2:'.$idref.' | %\'', __FILE__, 574);
            if ($PAYM['limitref'] <= $limitref_count) {                if ($CONF['randref'] == 1) {                    $idref = get_defrandref();                } else {                    $idref = 0;                }
                $TMPL['lref'] = '';
                if ((($idref < 1 and& isset($FORM['a'])) and& $FORM['a'] == 'join')) {                    $REFF['username'] = '';                    $TMPL['lref'] = 'sc_reset';                    $FORM['a'] = 'noreferrer';                }            }        }
        $reff_username = '';
        if ((isset($REFF['username']) and& $REFF['username'])) {            $reff_username = $REFF['username'];            $ixref = base64_encode($reff_username);        } else {            $ixref = '';        }
        $_SESSION['un_gPiXY'] = $ixref;        setcookie('GP_usaC0X', $ixref, time() + 3600 * 24 * $CONF['cookie_days']);
        if ($CONF['lockin_domain'] != '127.0.0.1') {            setcookie('GP_usaC0X', $ixref, time() + 3600 * 24 * $CONF['cookie_days'], '/', '.'.$CONF['lockin_domain']);        }
        $idspr = idspilan($idref);        $row = $DB->fetch(''.'SELECT * FROM '.$CONF['sql_prefix'].'_users WHERE id = \''.$idref.'\'', __FILE__, 605);
        if ($row) {            $REFF = array_merge($REFF, $row);        }
        $row = $DB->fetch(''.'SELECT * FROM '.$CONF['sql_prefix'].'_usersplan WHERE idmbr = \''.$idref.'\' AND paymid = \''.$PAYM['id'].'\'', __FILE__, 607);
        if ($row) {            $REFF = array_merge($REFF, $row);        }
        $idmbr_temp = $REFF['idmbr'];        list($xtd_exist) = $DB->fetch(''.'SELECT count(*) FROM '.$CONF['sql_prefix'].'_usersxtd WHERE username = \''.$REFF['username'].'\'', __FILE__, 611);
        if ($xtd_exist == 0) {            $DB->query(''.'INSERT INTO '.$CONF['sql_prefix'].'_usersxtd (username, idmbr) VALUES (\''.$REFF['username'].'\', \''.$REFF['id'].'\')', __FILE__, 613);        }
        $row = $DB->fetch(''.'SELECT * FROM '.$CONF['sql_prefix'].'_usersxtd WHERE username = \''.$REFF['username'].'\'', __FILE__, 615);        $REFF = @array_merge($REFF, $row);        $REFF['idmbr'] = $idmbr_temp;        $row = $DB->fetch(''.'SELECT * FROM '.$CONF['sql_prefix'].'_users WHERE id = \''.$idspr.'\'', __FILE__, 620);
        if ($row) {            $SPR = array_merge($SPR, $row);        }
        $idmbr_temp = $SPR['idmbr'];        list($xtd_exist) = $DB->fetch(''.'SELECT count(*) FROM '.$CONF['sql_prefix'].'_usersxtd WHERE username = \''.$SPR['username'].'\'', __FILE__, 624);
        if ($xtd_exist == 0) {            $DB->query(''.'INSERT INTO '.$CONF['sql_prefix'].'_usersxtd (username, idmbr) VALUES (\''.$SPR['username'].'\', \''.$SPR['id'].'\')', __FILE__, 626);        }
        $row = $DB->fetch(''.'SELECT * FROM '.$CONF['sql_prefix'].'_usersxtd WHERE username = \''.$SPR['username'].'\'', __FILE__, 628);        $SPR = @array_merge($SPR, $row);        $SPR['idmbr'] = $idmbr_temp;    }
    $merchants = $DB->fetch(''.'SELECT * FROM '.$CONF['sql_prefix'].'_merchants', __FILE__, 634);    $PAYM = array_merge((array)$PAYM, $merchants);    $TMPL['referrer_fullname'] = '???';
    if ($REFF['fullname'] != '') {        $TMPL['referrer_fullname'] = $REFF['fullname'];    }
    $ad_breaks = explode(',', $CONF['ad_breaks']);    $CONF['ad_breaks'] = array();    foreach ($ad_breaks as $key => $value) {        $CONF['ad_breaks'][$value] = $value;    }
    $result = $DB->query(''.'SELECT category, skin FROM '.$CONF['sql_prefix'].'_categories ORDER BY category', __FILE__, 650);
    while (list($category, $skin) = $DB->fetch_array($result)) {        $CONF['categories'][$category] = $skin;    }
    $lng_g_hint = '';
    if ((isset($LNG['g_hint']) and& $LNG['g_hint'])) {        $lng_g_hint = $LNG['g_hint'];    }
    $CONF['help_img'] = ''.'<img src="'.$TMPL['site_url'].'/templates/'.$CONF['default_skin'].'/images/i_help.gif" title="'.$lng_g_hint.'" style="cursor: pointer; border: 0px;" class="help" onmouseover="this.style.background=\'\';" onmouseout="this.style.background=\'\'" >';    $CONF['proversion_img'] = '';
    if ($ETCS['_lcsk_is_pro'] == 1) {        $CONF['proversion_img'] = ''.'<img src="'.$TMPL['site_url'].'/images/pro_version.gif" title="'.$g_proversion.'" style="border: 0px;" class="help" onmouseover="this.style.background=\'\';" onmouseout="this.style.background=\'\'" >';    }
    if(getenv("HTTP_CLIENT_IP")) { $ipaddr = getenv("HTTP_CLIENT_IP");    } elseif(getenv("HTTP_X_FORWARDED_FOR")) { $ipaddr = getenv("HTTP_X_FORWARDED_FOR");    } else { $ipaddr = getenv("REMOTE_ADDR");    }    require_once(''.$CONF['path'].'/includes/misc/session.php');    $time = time() - 1 * 60 * 60;    $DB->query(''.'DELETE FROM '.$CONF['sql_prefix'].'_sessions WHERE type = \'guest\' AND time < \''.$time.'\'', __FILE__, 689);    list($sid, $tme) = $DB->fetch(''.'SELECT sid, time FROM '.$CONF['sql_prefix'].'_sessions WHERE type = \'guest\' AND data LIKE \'%'.$ipaddr.'%\'', __FILE__, 690);    $hits_session = new session();
    if ($sid) {        $hits_session->update($sid);    } else {        $hits_session->create('guest', $_SERVER['REMOTE_ADDR'].' | '.$ipaddr);        $DB->query(''.'UPDATE '.$CONF['sql_prefix'].'_etc SET sitehits = sitehits+1', __FILE__, 696);        $DB->query(''.'UPDATE '.$CONF['sql_prefix'].'_users SET hits = hits+1 WHERE id=\''.$idref.'\'', __FILE__, 697);    }
    getaway_from_arrban();    $ip_ban = explode(',', str_replace(' ', '', $CONF['ipbanlist']));
    if (in_array($_SERVER['REMOTE_ADDR'], $ip_ban)) {        exit($LNG['g_bannedip']);    } else {        foreach ($ip_ban as $ban) {            if ($ban != '') {                if (strpos($_SERVER['REMOTE_ADDR'], $ban) !== false) {                    exit($LNG['g_bannedip']);                    continue;                }
                continue;            }        }    }

    if ($is_override_ipn == 1) {        if ($ETCS['_lcsk_is_pro'] == 1) {            $ver_teks = 'Pro! version';        } else {            $ver_teks = 'Biz! version';        }
        $TMPL['test_mode'] = ''.'<table align=\'center\' width=\'100%\' bgcolor=\'red\'><tr><td align=\'center\'><strong><font color=\'white\'>WARNING!!! SYSTEM RUNNING IN PAYMENT TEST MODE | <a href=\'index.php?x=_rr\'><font color=\'#FFEAB4\'>REMOVE REFERRER</font></a> | <a href=\'index.php?x=_em\'><font color=\'#FFEAB4\'>EMPTY MEMBERS</font></a> | '.$ver_teks.'</font></strong></td></tr></table>';
        if ($FORM['x'] == '_rr') {            $_SESSION['un_gPiXY'] = '';            $_COOKIE['GP_usaC0X'] = '';            setcookie('GP_usaC0X', '', time() - 3600);
            if ($CONF['lockin_domain'] != '127.0.0.1') {                setcookie('GP_usaC0X', '', time() - 3600, '/', '.'.$CONF['lockin_domain']);            }
            $REFF = '';            $SPR = '';        }

        if ($FORM['x'] == '_em') {            $DB->query(''.'TRUNCATE `'.$CONF['sql_prefix'].'_users`', __FILE__, 732);            $DB->query(''.'TRUNCATE `'.$CONF['sql_prefix'].'_usersplan`', __FILE__, 733);            $DB->query(''.'TRUNCATE `'.$CONF['sql_prefix'].'_divegold`', __FILE__, 734);            $DB->query(''.'TRUNCATE `'.$CONF['sql_prefix'].'_usersxtd`', __FILE__, 735);        }    }

    if (($FORM['x'] == '_rr' and& md5($FORM['z']) == '41bd62f6396d7bf0128a653e131d54d2')) {        $_SESSION['un_gPiXY'] = '';        setcookie('GP_usaC0X', '', time() - 3600);
        if ($CONF['lockin_domain'] != '127.0.0.1') {            setcookie('GP_usaC0X', '', time() - 3600, '/', '.'.$CONF['lockin_domain']);        }    }

    if (($CONF['custom_ref_un_session'] == '1' and& $CONF['custom_ref_un_value'] != '')) {        $custom_ref_un_value = trim($CONF['custom_ref_un_value']);        $_SESSION[$custom_ref_un_value] = $_SESSION['un_gPiXY'];        setcookie($custom_ref_un_value, $_SESSION['un_gPiXY'], time() + 3600 * 24 * $CONF['cookie_days']);    }

    if ((isset($FORM['cat']) and& isset($CONF['categories'][$FORM['cat']]))) {        $TMPL['skin_name'] = $CONF['categories'][$FORM['cat']];    } else {        $TMPL['skin_name'] = $CONF['default_skin'];    }

    if ((!is_dir(''.$CONF['path'].'/templates/'.$TMPL['skin_name'].'/') | !$TMPL['skin_name'])) {        $TMPL['skin_name'] = $CONF['default_skin'];    }

    if (!is_dir(''.$CONF['path'].'/templates/'.$CONF['default_skin'].'/')) {        $TMPL['skin_name'] = 'ezygold';    }
    require_once(''.$CONF['path'].'/includes/misc/skin.php');
    if (($CONF['sitetype'] == 'classite' | $CONF['sitetype'] == 'topsites')) {        list($last_new_day, $last_new_week, $last_new_month) = $DB->fetch(''.'SELECT last_new_day, last_new_week, last_new_month FROM '.$CONF['sql_prefix'].'_etc', __FILE__, 770);        $time = time() + 3600 * $CONF['time_offset'];        $current_day = date('d', $time);        $current_week = date('W', $time);        $current_month = date('m', $time);
        if ($last_new_day != $current_day) {            @require_once(''.$CONF['path'].'/includes/misc/new_day.php');            new_day($current_day);        }

        if ($last_new_week != $current_week) {            @require_once(''.$CONF['path'].'/includes/misc/new_day.php');            new_week($current_week);        }

        if ($last_new_month != $current_month) {            @require_once(''.$CONF['path'].'/includes/misc/new_day.php');            new_month($current_month);        }

        if ($CONF['ranking_period'] == 'weekly') {            $LNG['g_this_period'] = $LNG['g_this_week'];            $LNG['g_last_period'] = $LNG['g_last_week'];        } else {            if ($CONF['ranking_period'] == 'monthly') {                $LNG['g_this_period'] = $LNG['g_this_month'];                $LNG['g_last_period'] = $LNG['g_last_month'];            } else {                $LNG['g_this_period'] = $LNG['g_today'];                $LNG['g_last_period'] = $LNG['g_yesterday'];            }        }    }

    if (($CONF['sitetype'] == 'classite' | $CONF['sitetype'] == 'topsites')) {        @require_once(''.$CONF['path'].'/includes/in.php');        $in = new in();    }
    $ezygold_sid_client = '';    $ezygold_sid_admin = '';    $session = new session();    $TMPL['div_register_none'] = '';
    if ((isset($_SESSION['ezygold_sid_client']) and& $_SESSION['ezygold_sid_client'])) {        $ezygold_sid_client = $_SESSION['ezygold_sid_client'];        $LNG['main_menu_client'] = $LNG['g_memberarea'];        $TMPL['div_register_none'] = 'style=\'display: none;\'';    }

    if ((isset($_SESSION['ezygold_sid_admin']) and& $_SESSION['ezygold_sid_admin'])) {        $ezygold_sid_admin = $_SESSION['ezygold_sid_admin'];    }
    list($type_u, $data_u) = $session->get($ezygold_sid_client);    list($type_a, $data_a) = $session->get($ezygold_sid_admin);
    if (($type_u == 'client' and& $data_u != '')) {        $TMPL['username_uc'] = strtoupper($data_u);    }
    $data_u4id = username2id($data_u);
    if (0 < $REFF['paymid']) {        $TMPL['ref_payplan_id'] = $REFF['paymid'];    }

    if (0 < $SPR['paymid']) {        $TMPL['spr_payplan_id'] = $SPR['paymid'];    }

    if ($data_u != '') {        $TMPL['mbr_payplan_id'] = $DB->fetch(''.'SELECT paymid FROM '.$CONF['sql_prefix'].'_usersplan WHERE idmbr = \''.$data_u4id.'\' AND active = \'1\' ORDER BY idusrpp DESC LIMIT 1', __FILE__, 835);    }

    if ($CONF['sitetype'] == 'estore') {        if (($FORM['otopg'] != '' and& $FORM['a'] == 'order')) {            $res_oto = getset_otopage($FORM['otopg'], '0000-00-00');        }    }
    $res = '';    $result = $DB->query(''.'SELECT id, avalfor, pgtoken, planids FROM '.$CONF['sql_prefix'].'_custom_pages WHERE id != \'\' AND avalfor != \'\' AND active = \'1\' ORDER BY id DESC', __FILE__, 845);
    while (list($id, $avalfor, $pgtoken, $planids) = $DB->fetch_array($result)) {        $custompages_id = $id.', ';
        if ($planids != '') {            $planids = str_replace(' | ', '', $planids);            $planids_arr = explode(',', str_replace(' ', '', $planids));
            if (((array_search(''.$TMPL['mbr_payplan_id'], $planids_arr) !== true and& array_search(''.$TMPL['spr_payplan_id'], $planids_arr) !== true) and& array_search(''.$TMPL['ref_payplan_id'], $planids_arr) !== true)) {                $custompages_id = '';            }        }

        if (strpos($avalfor, ' | all | ') === false) {            if ((isset($_SESSION['ezygold_sid_client']) and& $_SESSION['ezygold_sid_client'])) {                $paid_uc = ' | free | ';                $username_id = username2id($TMPL['username_uc']);                list($active_uc) = $DB->fetch(''.'SELECT active FROM '.$CONF['sql_prefix'].'_usersplan WHERE idmbr = \''.$username_id.'\' AND paymid = \''.$planids.'\'', __FILE__, 863);
                if ($active_uc == '1') {                    $paid_uc = ' | paid | ';                }

                if (strpos($avalfor, $paid_uc) === false) {                    continue;                }

                if (iscustom_page($id, $pgtoken)) {                    $res .= $custompages_id;                    continue;                }
                continue;            }
            continue;        }

        if (iscustom_page($id, $pgtoken)) {            $res .= $custompages_id;            continue;        }    }

    if ($res == '') {        $res = '_';    }
    list($mainpages) = $DB->fetch(''.'SELECT mainpages FROM '.$CONF['sql_prefix'].'_etc LIMIT 1', __FILE__, 879);    $mainpages .= ', ';    $action = array('admin' => 1, 'checkout' => 1, 'client' => 1, 'contact' => 1, 'details' => 1, 'errorwarn' => 1, 'faqs' => 1, 'in' => 1, 'itemspage' => 1, 'join' => 1, 'join_process' => 1, 'lost_pw' => 1, 'mycart' => 1, 'mylead' => 1, 'news' => 1, 'noreferrer' => 1, 'order' => 1, 'out' => 1, 'page' => 1, 'programs' => 1, 'rankings' => 1, 'rate' => 1, 'search' => 1, 'siteads' => 1, 'sites' => 1, 'stats' => 1, 'squeezepage' => 1, 'subscriber' => 1, 'terms' => 1, 'testimonials' => 1);    $action_reserved = $action;    list($adminpages) = $DB->fetch(''.'SELECT adminpages FROM '.$CONF['sql_prefix'].'_etc LIMIT 1', __FILE__, 918);    list($clientpages) = $DB->fetch(''.'SELECT clientpages FROM '.$CONF['sql_prefix'].'_etc LIMIT 1', __FILE__, 921);    $custompages = $adminpages.', '.$clientpages;    $result = $DB->query(''.'SELECT id, planids FROM '.$CONF['sql_prefix'].'_custom_pages WHERE active = \'1\'', __FILE__, 925);
    while (list($id, $planids) = $DB->fetch_array($result)) {        $custompages .= ', '.$id;    }
    $uncstmpages = ',';    $result = $DB->query(''.'SELECT id FROM '.$CONF['sql_prefix'].'_custom_pages WHERE active != \'1\'', __FILE__, 932);
    while (list($id) = $DB->fetch_array($result)) {        $uncstmpages .= $id.',';    }
    $listofpages = explode(', ', $custompages);    foreach ($listofpages as $pgmenu) {        $crnt_what = 'm_crnt_'.trim($pgmenu);        $crnt_what0 = 'm_acrnt_'.trim($pgmenu);        $request_a = '';
        if (isset($FORM['a'])) {            $request_a = trim($FORM['a']);        }

        if (!$request_a) {            $TMPL['m_crnt_'] = 'm_current';            $TMPL['m_acrnt_'] = 'active';            continue;        }

        if (trim($FORM['a']) == trim($pgmenu)) {            $TMPL[$crnt_what] = 'm_current';            $TMPL[$crnt_what0] = 'active';            continue;        }
        $TMPL[$crnt_what] = '';        $TMPL[$crnt_what0] = '';    }
    foreach ($action as $pgmenu => $pgmenuid) {        $crnt_what = 'm_crnt_'.trim($pgmenu);        $crnt_what0 = 'm_acrnt_'.trim($pgmenu);        $request_a = '';
        if (isset($FORM['a'])) {            $request_a = trim($FORM['a']);        }

        if (!$request_a) {            $TMPL['m_crnt_'] = 'm_current';            $TMPL['m_acrnt_'] = 'active';            continue;        }

        if (trim($FORM['a']) == trim($pgmenu)) {            $TMPL[$crnt_what] = 'm_current';            $TMPL[$crnt_what0] = 'active';            continue;        }
        $TMPL[$crnt_what] = '';        $TMPL[$crnt_what0] = '';    }
    videostmpl_load();
    if ((isset($FORM['a']) and& ((isset($action[$FORM['a']]) | strpos($res, $FORM['a']) !== false) | strpos($mainpages, $FORM['a']) !== false))) {        $page_name = $FORM['a'];    } else {        if ($CONF['sitetype'] == 'topsites') {            $page_name = 'rankings';        } else {            if ($CONF['sitetype'] == 'classite') {                $page_name = 'siteads';            } else {                if ($CONF['sitetype'] == 'estore') {                    $page_name = 'estore';                } else {                    $page_name = 'custom';                }            }        }    }

    if ((((($TMPL['is_otopage_avalfor'] == '' and& $TMPL['is_otopage_idname'] != '') and& $FORM['a'] != 'page') and& $FORM['a'] != 'admin') and& $FORM['login'] == '')) {        $page_name = $TMPL['is_otopage_idname'];    }

    if (strpos($uncstmpages, $FORM['a']) !== false) {        $TMPL['error'] = $LNG['a_page_disabled'];        $page_name = 'errorwarn';    }
    $result_add_on_folder_ezygold_aratisa_inc = $DB->query(''.'SELECT folder FROM '.$CONF['sql_prefix'].'_addons WHERE validfor = \'All\'', __FILE__, 1004);
    while (list($folder) = $DB->fetch_array($result_add_on_folder_ezygold_aratisa_inc)) {        $addon_4ezycart = $addon_4usercp = 0;        $addon_inf_file = $CONF['path'].'/addons/'.$folder.'/addon_'.$folder.'.inf.php';
        if (!file_exists($addon_inf_file)) {            continue;        }
        include($addon_inf_file);
        if (($CONF['sitetype'] != 'estore' and& $addon_4ezycart == 1)) {            continue;        }

        if (($type_u != 'client' and& $addon_4usercp == 1)) {            continue;        }

        if (($type_a != 'admin' and& $addon_4admincp == 1)) {            continue;        }
        $filename = $CONF['path'].'/addons/'.$folder.'/index.php';
        if (file_exists($filename)) {            if (!include_once($filename)) {                exit('Add-On Error: '.$folder);                continue;            }
            continue;        }    }

    if ($CONF['sitetype'] != 'estore') {        $TMPL['div_estore_none'] = 'style=\'display: none;\'';    } else {        $TMPL['div_estore_none'] = '';    }

    if (($CONF['sitetype'] != 'classite' and& $CONF['sitetype'] != 'topsites')) {        $TMPL['div_classite_none'] = 'style=\'display: none;\'';    } else {        $TMPL['div_classite_none'] = '';    }
    $TMPL['div_dlbsites_none'] = 'style=\'display: none;\'';    $TMPL['div_dlbuilder_none'] = 'style=\'display: none;\'';
    if (($CONF['dlbuilder'] == 1 | $CONF['dlbuilder'] == 2)) {        list($dlbsites) = $DB->fetch(''.'SELECT COUNT(*) FROM '.$CONF['sql_prefix'].'_dlbuilder WHERE savalfor=\'2\' OR savalfor=\'1\'', __FILE__, 1034);
        if (0 < $dlbsites) {            $TMPL['div_dlbsites_none'] = '';        }
        list($dlbsites) = $DB->fetch(''.'SELECT COUNT(*) FROM '.$CONF['sql_prefix'].'_dlbuilder WHERE savalfor=\'3\' OR savalfor=\'1\'', __FILE__, 1036);
        if (0 < $dlbsites) {            $TMPL['div_dlbuilder_none'] = '';        }    }
    $TMPL['popover_jscript'] = '';    $TMPL['popover_head'] = '';    $TMPL['popover_body'] = '';    $TMPL['span_hidefrom_mainpage'] = '';
    if ((!isset($FORM['a']) | $FORM['a'] == '')) {        $TMPL['span_hidefrom_mainpage'] = 'style=\'display: none;\'';        $po_row = $DB->fetch(''.'SELECT * FROM '.$CONF['sql_prefix'].'_preads WHERE atype LIKE \'PopOver\'', __FILE__, 1047);
        if (0 < $po_row['id']) {            include_once(''.$CONF['path'].'/myprepop.php');        }    }
    $TMPL['span_nossl_site'] = '';
    if ($_SERVER['SERVER_PORT'] == 443) {        $TMPL['span_nossl_site'] = 'style=\'display: none;\'';    }
    $TMPL['span_ssl_site'] = '';
    if ($_SERVER['SERVER_PORT'] != 443) {        $TMPL['span_ssl_site'] = 'style=\'display: none;\'';    }

    if (file_exists(''.$CONF['path'].'/install/')) {        $TMPL['header'] = $LNG['g_error'];        $base = new base();        $base->error($LNG['g_delete_install']);    }
    list($pageid, $pgtoken) = $DB->fetch(''.'SELECT id, pgtoken FROM '.$CONF['sql_prefix'].'_custom_pages WHERE id = \''.$page_name.'\' AND active = \'1\' AND (pgtoken LIKE \'% | PAS:%\' OR pgtoken LIKE \'% | EXP:%\')', __FILE__, 1066);
    if ($pageid != '') {        $base = new base();        $base->formpage_pass($pageid, $pgtoken);    }

    if (file_exists(''.$CONF['path'].'/includes/'.$page_name.'.php')) {        require_once(''.$CONF['path'].'/includes/'.$page_name.'.php');    } else {        if (file_exists(''.$CONF['path'].'/plugins/'.$CONF['sitetype'].'/'.$page_name.'.php')) {            require_once(''.$CONF['path'].'/plugins/'.$CONF['sitetype'].'/'.$page_name.'.php');        } else {            if (file_exists(''.$CONF['path'].'/includes/mypages/'.$page_name.'.php')) {                require_once(''.$CONF['path'].'/includes/mypages/'.$page_name.'.php');            } else {                exit('Plugins not found!, reinstall using original software package.');            }        }    }
    $page = new $page_name();    $result_add_on_folder_ezygold_aratisa_inc = $DB->query(''.'SELECT folder FROM '.$CONF['sql_prefix'].'_addons WHERE validfor != \'All\'', __FILE__, 1085);
    while (list($folder) = $DB->fetch_array($result_add_on_folder_ezygold_aratisa_inc)) {        $addon_4ezycart = $addon_4usercp = 0;        $addon_inf_file = $CONF['path'].'/addons/'.$folder.'/addon_'.$folder.'.inf.php';
        if (!file_exists($addon_inf_file)) {            continue;        }
        include($addon_inf_file);
        if (($CONF['sitetype'] != 'estore' and& $addon_4ezycart == 1)) {            continue;        }

        if (($type_u != 'client' and& $addon_4usercp == 1)) {            continue;        }

        if (($type_a != 'admin' and& $addon_4admincp == 1)) {            continue;        }
        $filename = $CONF['path'].'/addons/'.$folder.'/index.php';
        if (file_exists($filename)) {            if (!include_once($filename)) {                exit('Add-On Error: '.$folder);                continue;            }
            continue;        }    }
    $bases = new base();
    if (!isset($FORM['a'])) {        $FORM['a'] = '';    }

    if (($FORM['a'] == 'admin' and& $type_a == 'admin')) {        $TMPL['include_jscripts'] = $bases->do_skin('jscripts_admin') . $TMPL['include_addonsjscripts_admin'];        $TMPL['include_footcode'] = $bases->do_skin('footcode_admin') . $TMPL['include_addonsfootcode_admin'];        $displaypage = 'template_admin';    } else {        if (($type_u == 'client' and& ($data_u and& $FORM['a'] == 'client'))) {            $TMPL['include_jscripts'] = $bases->do_skin('jscripts_user') . $TMPL['include_addonsjscripts_user'];            $TMPL['include_footcode'] = $bases->do_skin('footcode_user') . $TMPL['include_addonsfootcode_user'];            $displaypage = 'template_user';        } else {            $TMPL['include_jscripts'] = $bases->do_skin('jscripts') . $TMPL['include_addonsjscripts'];            $TMPL['include_footcode'] = $bases->do_skin('footcode') . $TMPL['include_addonsfootcode'];
            if ($_SESSION['is_squeezer'] != '1') {                $_SESSION['is_squeezer'] = $_COOKIE['is_squeezer'];            }

            if (((((((((((($CONF['issqueezer'] == 1 and& $_SESSION['is_squeezer'] != '1') and& $FORM['a'] != 'admin') and& $FORM['a'] != 'client') and& $FORM['a'] != 'mylead') and& $FORM['a'] != 'terms') and& $FORM['a'] != 'in') and& $FORM['a'] != 'join_process') and& $FORM['a'] != 'lost_pw') and& $FORM['a'] != 'noreferrer') and& $FORM['a'] != 'out') and& $FORM['a'] != 'page')) {                if (isset($_SESSION['squeezer_error_style_sponsor'])) {                    $TMPL['error_style_sponsor'] = $_SESSION['squeezer_error_style_sponsor'];                }

                if (isset($_SESSION['squeezer_lspru'])) {                    $TMPL['lspru'] = stripslashes($_SESSION['squeezer_lspru']);                }

                if (isset($_SESSION['squeezer_error_sponsor'])) {                    $TMPL['error_sponsor'] = $_SESSION['squeezer_error_sponsor'];                }

                if (isset($_SESSION['squeezer_error_style_name'])) {                    $TMPL['error_style_name'] = $_SESSION['squeezer_error_style_name'];                }

                if (isset($_SESSION['squeezer_lname'])) {                    $TMPL['lname'] = stripslashes($_SESSION['squeezer_lname']);                }

                if (isset($_SESSION['squeezer_error_name'])) {                    $TMPL['error_name'] = $_SESSION['squeezer_error_name'];                }

                if (isset($_SESSION['squeezer_error_style_fname'])) {                    $TMPL['error_style_fname'] = $_SESSION['squeezer_error_style_fname'];                }

                if (isset($_SESSION['squeezer_fname'])) {                    $TMPL['lfname'] = stripslashes($_SESSION['squeezer_fname']);                }

                if (isset($_SESSION['squeezer_error_fname'])) {                    $TMPL['error_fname'] = $_SESSION['squeezer_error_fname'];                }

                if (isset($_SESSION['squeezer_error_style_email'])) {                    $TMPL['error_style_email'] = $_SESSION['squeezer_error_style_email'];                }

                if (isset($_SESSION['squeezer_lemail'])) {                    $TMPL['lemail'] = stripslashes($_SESSION['squeezer_lemail']);                }

                if (isset($_SESSION['squeezer_error_email'])) {                    $TMPL['error_email'] = $_SESSION['squeezer_error_email'];                }

                if (isset($_SESSION['squeezer_error_style_emtype'])) {                    $TMPL['error_style_emtype'] = $_SESSION['squeezer_error_style_emtype'];                }

                if (isset($_SESSION['squeezer_error_emtype'])) {                    $TMPL['error_emtype'] = $_SESSION['squeezer_error_emtype'];                }

                if (isset($_SESSION['squeezer_error_style_captcha'])) {                    $TMPL['error_style_captcha'] = $_SESSION['squeezer_error_style_captcha'];                }

                if (isset($_SESSION['squeezer_error_captcha'])) {                    $TMPL['error_captcha'] = $_SESSION['squeezer_error_captcha'];                }
                $result = $DB->query(''.'SELECT frm FROM '.$CONF['sql_prefix'].'_userfields WHERE isfill = \'1\' AND frm != \''.$PAYM['cglevels'].'\' AND frm != \''.$PAYM['cgsendmtd'].'\' AND is4usr = \'0\'', __FILE__, 1140);
                while (list($frm) = $DB->fetch_array($result)) {                    if (isset($_SESSION['squeezer_error_style_'.$frm])) {                        $TMPL['error_style_'.$frm] = $_SESSION['squeezer_error_style_'.$frm];                    }

                    if (isset($_SESSION['squeezer_error_'.$frm])) {                        $TMPL['error_'.$frm] = $_SESSION['squeezer_error_'.$frm];                        continue;                    }                }

                if ($CONF['captcha_subscriber']) {                    $TMPL['show_captcha'] = $bases->do_skin('captcha');                } else {                    $TMPL['show_captcha'] = '';                }
                $user_cf = '';                $TMPL['subscriber_userfields'] = '';                list($cf_count) = $DB->fetch(''.'SELECT count(*) FROM '.$CONF['sql_prefix'].'_userfields WHERE is4usr = \'0\'', __FILE__, 1156);
                if (0 < $cf_count) {                    $result = $DB->query(''.'SELECT frm, frmtype, frmoptions, txt, txtsize, isfill FROM '.$CONF['sql_prefix'].'_userfields WHERE is4usr = \'0\' ORDER BY frmorder', __FILE__, 1158);
                    while (list($frm, $frmtype, $frmoptions, $txt, $txtsize, $isfill) = $DB->fetch_array($result)) {                        $err_text = $TMPL['error_'.$frm];                        $err_style = $TMPL['error_style_'.$frm];
                        if ($frmtype == 'TEXT') {                            $user_cf .= ''.'<div class=\''.$err_style.'\'><label>'.$txt.'<br /><input type=\'text\' name=\''.$frm.'\' size=\'50\' maxlength=\''.$txtsize . (''.'\' value=\''.$FORM[$frm].'\' />'.$err_text.'</label></div><br />');                            continue;                        }

                        if ($frmtype == 'TEXTAREA') {                            $user_cf .= ''.'<div class=\''.$err_style.'\'><label>'.$txt.'<br /><textarea cols=\'40\' rows=\'3\' name=\''.$frm . (''.'\'>'.$FORM[$frm].'</textarea>'.$err_text.'</label></div><br />');                            continue;                        }

                        if ($frmtype == 'SELECT') {                            $myfrm = $FORM[$frm];                            $isoption = cfselect($frmoptions, $myfrm);                            $user_cf .= ''.'<div class=\''.$err_style.'\'><label>'.$txt.'<br /><select name=\''.$frm.'\'>'.$isoption . (''.'</select>'.$err_text.'</label></div><br />');                            continue;                        }                    }
                    $TMPL['subscriber_userfields'] = $user_cf;                }
                $TMPL['squeezer_form'] = $bases->do_skin('squeezer_form');                $displaypage = 'squeezer';            } else {                $displaypage = 'template';            }        }    }

    if ((((($TMPL['is_otopage_idname'] != '' and& $TMPL['is_otopage_loadtm'] != '1') and& $FORM['a'] != 'page') and& $FORM['a'] != 'admin') and& $FORM['login'] == '')) {        $displaypage = 'template_oto';    }
    $TMPL['offline_note'] = '';
    if (($ETCS['site_status'] == 0 and& $FORM['a'] != 'admin')) {        $displaypage = 'offline';        $TMPL['offline_note'] = $ETCS['site_status_note'];    }
    if (isset($FORM['join_submit']) and& $FORM['a'] != 'join') {    include_once("{$CONF['path']}/includes/join_process.php");    }    $skin = new main_skin($displaypage);    echo $skin->make();
    if (($displaypage == 'squeezer' and& $FORM['a'] != 'subscriber')) {        $_SESSION['squeezer_error_style_sponsor'] = '';        $_SESSION['squeezer_lspru'] = '';        $_SESSION['squeezer_error_sponsor'] = '';        $_SESSION['squeezer_error_style_name'] = '';        $_SESSION['squeezer_lname'] = '';        $_SESSION['squeezer_error_name'] = '';        $_SESSION['squeezer_error_style_fname'] = '';        $_SESSION['squeezer_fname'] = '';        $_SESSION['squeezer_error_fname'] = '';        $_SESSION['squeezer_error_style_email'] = '';        $_SESSION['squeezer_lemail'] = '';        $_SESSION['squeezer_error_email'] = '';        $_SESSION['squeezer_error_style_emtype'] = '';        $_SESSION['squeezer_error_emtype'] = '';        $_SESSION['squeezer_error_style_captcha'] = '';        $_SESSION['squeezer_error_captcha'] = '';        $result = $DB->query(''.'SELECT frm FROM '.$CONF['sql_prefix'].'_userfields WHERE isfill = \'1\' AND frm != \''.$PAYM['cglevels'].'\' AND frm != \''.$PAYM['cgsendmtd'].'\' AND is4usr = \'0\'', __FILE__, 1237);
        while (list($frm) = $DB->fetch_array($result)) {            $_SESSION['squeezer_error_style_'.$frm] = '';            $_SESSION['squeezer_error_'.$frm] = '';        }    }
    $TMPL['update_membership_process'] = '';    if ($CONF['iscrontask']!=1) include_once("{$CONF['path']}/croninside.php");    $DB->close();
    if ($CONF['debug']) {        echo '<div style="clear: both;">';        foreach ($DB->queries as $value) {            echo ''.'<hr /><pre>'.$value.'</pre>';        }
        echo '<hr /><pre>';        print_r($FORM);        echo '</pre>';        echo '</div>';    }
?>
05-08-2014, 07:25 PM
Post: #5
RE:
eregi replace preg_match

if (
!preg_match("/^[\d ]+$/",array ($CONF['lockin_domain'], $_SERVER['HTTP_HOST']) ||
!preg_match("/^[\d ]+$/",array ("127.0.0.1", $_SERVER['HTTP_HOST']) ||
!preg_match("/^[\d ]+$/" ,array("ezygold.com", $_SERVER['HTTP_HOST']) ||
!preg_match("/^[\d ]+$/",array ("ezygold.net", $_SERVER['HTTP_HOST']))))))
{
exit();
87.gif
01-17-2017, 08:34 PM
Post: #6
RE: [GET] EAZYGOLD not Nulled
has anyone managed to null this!?!?




10.gif