Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.3.0
- * @ Author : DeZender
- * @ Release on : 17.05.2011
- * @ Official site : http://DeZender.Net
- *
- */
- function set_refcookie($ciddaeiga = 0, $ceiejchac = false) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $settings;
- $fdhjcif = $dhddgedaaf( '+' . $bcgahficac['ref_days'] . ' days' );
- if (( ( !empty( $ciddaeiga ) && $dchbacbcjc( $ciddaeiga ) ) && ( !isset( $_COOKIE['ref'] ) || $ceiejchac ) )) {
- $dgidhebabf( 'ref', $ciddaeiga, $fdhjcif );
- return null;
- }
- if (( ( empty( $ciddaeiga ) && ( !isset( $_COOKIE['ref'] ) || $ceiejchac ) ) && $bcgahficac['own_nonref'] )) {
- $fdhjcif = ($bcgahficac['own_perpetual'] ? $dhddgedaaf( '+10 years' ) : $fdhjcif);
- $dgidhebabf( 'ref', 0, $fdhjcif );
- }
- }
- function check_logedin($dfjibecdjf = false, $diihebibff = false) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- x0d( );
- global $smarty;
- global $session;
- global $glob;
- if (( ( ( empty( $bjicjiadhb ) || ( ( $dfjibecdjf && !$diihebibff ) && $bjicjiadhb['member_id'] != 1 ) ) || ( ( !$dfjibecdjf && !$diihebibff ) && $bjicjiadhb['member_id'] < 2 ) ) || ( $diihebibff && $bjicjiadhb['member_id'] < 1 ) )) {
- $bdbcdicijb->display( 'expired.tpl' );
- exit( );
- }
- }
- function get_url() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $badiejedje = (( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) ? 'http://' : 'https://');
- return $badiejedje . $_SERVER['HTTP_HOST'];
- }
- function read_settings() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $bdghccijhg = query_pairs( 'select `key`, value from settings' );
- return $bdghccijhg;
- }
- function db_connect() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $mysql_database;
- global $mysql_host;
- global $mysql_password;
- global $mysql_username;
- if (!isset( $eacecdbeif )) {
- if (!( $eacecdbeif = $diecjdfeha( $cdijhifbie, $didebhedgd, $chddhfejbf ))) {
- exit( 'I cannot connect to the database because: ' . $ecjddahacc( ) );
- (bool)true;
- }
- $dacdddefjg( $cgigjajba, $eacecdbeif );
- }
- return $eacecdbeif;
- }
- function check_captcha($chcideice) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $settings;
- global $session;
- if ($bcgahficac['use_turing']) {
- if ($daegejgghg( $chcideice ) != $daegejgghg( $dehhifcahi->get( 'code' ) )) {
- return false;
- }
- return true;
- }
- return true;
- }
- function login_attempt($diechbfjeh, $cfjaebbbib, $chcideice) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $settings;
- global $session;
- if (!check_captcha( $chcideice )) {
- return LOGIN_WRONGCODE;
- }
- $ihfaeebij = query_row( 'SELECT * FROM members WHERE user_name=\'%s\'', $diechbfjeh );
- if (empty( $ihfaeebij )) {
- return LOGIN_WRONGUSERNAME;
- }
- if ($bcgahficac['use_encryption']) {
- if ($ihfaeebij['password'] != $cgcachefei( $cfjaebbbib )) {
- return LOGIN_WRONGPASSWORD;
- }
- } else {
- if ($ihfaeebij['password'] != $cfjaebbbib) {
- return LOGIN_WRONGPASSWORD;
- }
- }
- switch ($ihfaeebij['status']) {
- case 'suspended': {
- LOGIN_SUSPENDED;
- }
- }
- return ;
- }
- function render_errors() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $err;
- $chffgagadc = '';
- if (0 < $bedbahigdc( $djgicideei )) {
- $chffgagadc = '<table class="error_box" align="center"><tr><td><img src="images/warning.gif" /></td><td><ul>';
- foreach ($djgicideei as $eafcfgbgeg) {
- $chffgagadc .= '<li>' . $eafcfgbgeg . '</li>';
- }
- $chffgagadc .= '</ul></td></tr></table>';
- }
- return $chffgagadc;
- }
- function insert_data($bjdbhajdbg, $cihcgbdhha, $dgegfhbefj, $cjgfifaejg = true) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $faeebjjfc = array( );
- $bhbaiihebd = array( );
- $eaeiifcgdg = db_connect( );
- if ($cjgfifaejg) {
- $bjdbhajdbg = $bbagiecaaf( $bjdbhajdbg );
- }
- $dfgihejjdj = ( ( ( ( '' . 'I' ) . 'N' ) . 'S' ) . 'ERT INTO ' . $bjdbhajdbg . ' ' );
- $eaiddfdjd = '(';
- $chjbhdhehh = '(';
- $daahfgibfd = false;
- if ($dgegfhbefj) {
- $bhbaiihebd = $chjhcibgjd( $cihcgbdhha, $_POST );
- } else {
- $bhbaiihebd = $cihcgbdhha;
- }
- $chffgagadc = $bddjhheeeh( ( ( '' . 'S' ) . 'HOW COLUMNS FROM ' . $bjdbhajdbg . ' ' ), $eaeiifcgdg );
- if (0 < $geaaaegee( $chffgagadc )) {
- while ($ihfaeebij = $ecbdbcfhda( $chffgagadc )) {
- if ($bhbaiihebd[$ihfaeebij['Field']] != '') {
- $faeebjjfc[$ihfaeebij['Field']] = $bhbaiihebd[$ihfaeebij['Field']];
- continue;
- }
- }
- } else {
- print 'ERROR: ' . $ecjddahacc( );
- }
- foreach ($faeebjjfc as $ecigfiibgf => $djccehejjd) {
- if ($daahfgibfd) {
- $eaiddfdjd .= ',';
- $chjbhdhehh .= ',';
- }
- $eaiddfdjd .= $bbagiecaaf( $ecigfiibgf );
- $chjbhdhehh .= '\'' . $bbagiecaaf( $djccehejjd ) . '\'';
- $daahfgibfd = true;
- }
- $eaiddfdjd .= ') ';
- $chjbhdhehh .= ') ';
- $dfgihejjdj .= $eaiddfdjd . ' VALUES ' . $chjbhdhehh;
- if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
- exit( 'insert failed.: ' . $dfgihejjdj );
- (bool)true;
- }
- return $jjegeehdc( );
- }
- function mass_update($bjdbhajdbg, $ecbjhddh, $eagfhjaffg) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- foreach ($eagfhjaffg as $ecaidcgdha => $eafcfgbgeg) {
- query_update( $bjdbhajdbg, $ecbjhddh, $ecaidcgdha, $eafcfgbgeg, false );
- }
- }
- function query_update($bjdbhajdbg, $ecbjhddh, $dabheeijef, $cihcgbdhha, $dgegfhbefj, $cjgfifaejg = true) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $faeebjjfc = array( );
- $ddajehahff = array( );
- $eaeiifcgdg = db_connect( );
- $bjdbhajdbg = $bbagiecaaf( $bjdbhajdbg );
- $dfgihejjdj = '' . 'UPDATE ' . $bjdbhajdbg . ' SET ';
- $eaiddfdjd = '';
- $daahfgibfd = false;
- if ($dgegfhbefj) {
- $ddajehahff = $chjhcibgjd( $cihcgbdhha, $_POST );
- } else {
- $ddajehahff = $cihcgbdhha;
- }
- $chffgagadc = $bddjhheeeh( ( ( '' . 'S' ) . 'HOW COLUMNS FROM ' . $bjdbhajdbg . ' ' ), $eaeiifcgdg );
- if (0 < $geaaaegee( $chffgagadc )) {
- while ($ihfaeebij = $ecbdbcfhda( $chffgagadc )) {
- if (isset( $ddajehahff[$ihfaeebij['Field']] )) {
- $faeebjjfc[$ihfaeebij['Field']] = $ddajehahff[$ihfaeebij['Field']];
- continue;
- }
- }
- } else {
- print 'ERROR: Table for insert not found: ' . $bjdbhajdbg;
- }
- foreach ($faeebjjfc as $ecigfiibgf => $djccehejjd) {
- if ($daahfgibfd) {
- $eaiddfdjd .= ',';
- }
- $eaiddfdjd .= $bbagiecaaf( $ecigfiibgf ) . '=\'' . $bbagiecaaf( $djccehejjd ) . '\'';
- $daahfgibfd = true;
- }
- $dfgihejjdj .= $eaiddfdjd . ' WHERE ' . $bbagiecaaf( $ecbjhddh ) . '=' . '\'' . $bbagiecaaf( $dabheeijef ) . '\'';
- if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
- exit( 'update failed.: ' . $dfgihejjdj );
- (bool)true;
- }
- return true;
- }
- function send_credentials($bfcdehgicb) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $settings;
- $eaeiifcgdg = db_connect( );
- if (is_email( $bfcdehgicb )) {
- $dfgihejjdj = 'SELECT user_name, first_name from members where email =\'' . $bfcdehgicb . '\'';
- if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
- exit( 'Query didn\'t work.' );
- (bool)true;
- }
- if ($geaaaegee( $chffgagadc ) < 1) {
- return EMAIL_NOTFOUND;
- }
- $ihfaeebij = $behijicbaj( $chffgagadc, MYSQL_ASSOC );
- send_email( 'Send Username', $bfcdehgicb, get_mailfrom( ), $ihfaeebij );
- return USERNAME_SENT;
- }
- if (!is_alphanumeric( $bfcdehgicb )) {
- exit( 'Tampering: 338' );
- }
- $dfgihejjdj = 'SELECT member_id, password, email, first_name from members where user_name =\'' . $bfcdehgicb . '\'';
- if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
- exit( 'Query didn\'t work.' );
- (bool)true;
- }
- if ($geaaaegee( $chffgagadc ) < 1) {
- return USERNAME_NOTFOUND;
- }
- $ihfaeebij = $behijicbaj( $chffgagadc, MYSQL_ASSOC );
- $cfjaebbbib = generate_password( 8 );
- $ihfaeebij['password'] = $cfjaebbbib;
- if ($bcgahficac['use_encryption'] == '1') {
- $cfjaebbbib = $cgcachefei( $cfjaebbbib );
- }
- query_update( 'members', 'member_id', $ihfaeebij['member_id'], array( 'password' => $cfjaebbbib, 'update_on' => $cgbgjjdhaj( 'Y-m-d H:i:s' ) ), false );
- send_email( 'Send Password', $ihfaeebij['email'], get_mailfrom( ), $ihfaeebij );
- return PASSWORD_SENT;
- }
- function send_email($cjeffjicgf, $dadjjgejhj, $beciadcdgf, $eaijaafbjg = array( ), $bfhhdgeied = '', $cahajjiege = '') {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $settings;
- global $session;
- global $glob;
- $eaeiifcgdg = db_connect( );
- if ($cahajjiege == '') {
- $dbbcejebbb = '' . 'select * from email_templates where email_id = \'' . $cjeffjicgf . '\'';
- $cdgfaahie = $bddjhheeeh( $dbbcejebbb, $eaeiifcgdg );
- $ihfaeebij = $behijicbaj( $cdgfaahie );
- if (!$ihfaeebij) {
- exit( 'email template not found' );
- return null;
- }
- if (!$ihfaeebij['enabled']) {
- return null;
- }
- $cahajjiege = $ihfaeebij['text'];
- $bfhhdgeied = $ihfaeebij['subject'];
- } else {
- $cahajjiege = $cahajjiege;
- $bfhhdgeied = $bfhhdgeied;
- }
- $dgiedjceea = (( !empty( $bjicjiadhb ) && isset( $bjicjiadhb['user_data'] ) ) ? $bjicjiadhb['user_data'] : array( ));
- $eaijaafbjg = $chjhcibgjd( $dgiedjceea, $eaijaafbjg, array( 'site_name' => $bcgahficac['site_name'], 'site_url' => get_url( ) ) );
- foreach ($eaijaafbjg as $dabifdabdd => $gbdbighdb) {
- if ($dcjbfhhefa( $gbdbighdb )) {
- $gbdbighdb = $gbdbighdb[0];
- }
- $cahajjiege = $dhbjgifdfg( '' . '/#' . $dabifdabdd . '#/', $gbdbighdb, $cahajjiege );
- $bfhhdgeied = $dhbjgifdfg( '' . '/#' . $dabifdabdd . '#/', $gbdbighdb, $bfhhdgeied );
- }
- if ($ihfaeebij['is_html']) {
- $dibbehedac = 'MIME-Version: 1.0' . '
- ';
- $dibbehedac .= 'Content-type: text/html; charset=iso-8859-1' . '
- ';
- }
- $dibbehedac .= ( ( ( ( '' . 'T' ) . 'o' ) . ':' ) . ' ' ) . $dadjjgejhj . '
- ';
- $dibbehedac .= '' . 'From: ' . $beciadcdgf . '
- ';
- return $djeaijacgg( $dadjjgejhj, $bfhhdgeied, $cahajjiege, $dibbehedac );
- }
- function get_mailfrom() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $settings;
- return '"' . $bcgahficac['site_name'] . '" <' . $bcgahficac['system_email'] . '>';
- }
- function check_activation($ceiahabjba, $chcideice) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- if (!$dchbacbcjc( $ceiahabjba )) {
- exit( 'Tampering: 424' );
- }
- if (!is_numericdash( $chcideice )) {
- exit( 'Tampering: 425' );
- }
- $eaeiifcgdg = db_connect( );
- $dfgihejjdj = '' . 'SELECT activation_code from members where member_id=\'' . $ceiahabjba . '\' and activation_code=\'' . $chcideice . '\'';
- if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
- exit( 'Query didn\'t work.' );
- (bool)true;
- }
- if (0 < $geaaaegee( $chffgagadc )) {
- $dfgihejjdj = 'UPDATE members SET activation_code = NULL, status=\'enabled\', update_on=\'' . $cgbgjjdhaj( 'Y-m-d H:i:s' ) . ( '' . '\' WHERE member_id=' . $ceiahabjba );
- if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
- exit( 'Query didn\'t work.' );
- (bool)true;
- }
- return 1;
- }
- return 0;
- }
- function generate_code() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $bbdgcbchfg = '';
- $diebididgh = 1;
- while ($diebididgh < 5) {
- if ($diebididgh != 1) {
- $bbdgcbchfg .= '-';
- }
- $bbdgcbchfg .= $geacjcdaf( 10000, 99999 );
- ++$diebididgh;
- }
- return $bbdgcbchfg;
- }
- function generate_password($bceaihihjb, $ccahbjhgaa = true, $bfhbjgaebh = true, $biabajcbaa = true) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $cfjaebbbib = '';
- while ($behjgejeae( $cfjaebbbib ) < $bceaihihjb) {
- switch ($geacjcdaf( 0, 2 )) {
- case 0: {
- if ($ccahbjhgaa) {
- $cfjaebbbib .= $geacjcdaf( 0, 9 );
- }
- break;
- }
- case 1: {
- if ($bfhbjgaebh) {
- $cfjaebbbib .= $chchicafbi( $geacjcdaf( 97, 122 ) );
- }
- break;
- }
- case 2: {
- if ($biabajcbaa) {
- $cfjaebbbib .= $chchicafbi( $geacjcdaf( 65, 90 ) );
- }
- }
- }
- }
- return $cfjaebbbib;
- }
- function check_unique($gcdgijcgd, $hejfhacb) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- if (!is_email( $gcdgijcgd )) {
- exit( 'Tampering: 477' );
- }
- if (!is_alphanumeric( $hejfhacb )) {
- exit( 'Tampering: 478' );
- }
- $eaeiifcgdg = db_connect( );
- $dfgihejjdj = ( ( '' . 'S' ) . 'E' ) . 'LECT email, user_name from members where email=\'' . $gcdgijcgd . '\' or user_name=\'' . $hejfhacb . '\'';
- if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
- exit( 'Query didn\'t work.' );
- (bool)true;
- }
- if (0 < $geaaaegee( $chffgagadc )) {
- $ihfaeebij = $ecbdbcfhda( $chffgagadc );
- if ($ihfaeebij['email'] == $gcdgijcgd) {
- return DUPLICATE_EMAIL;
- }
- if ($ihfaeebij['user_name'] == $hejfhacb) {
- return DUPLICATE_USERNAME;
- }
- }
- return 0;
- }
- function send_activation_code($ceiahabjba) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- if ($ceiahabjba < 1) {
- exit( 'Tampering: 496' );
- }
- $ihfaeebij = query_row( 'SELECT member_id, first_name, activation_code, email from members where member_id=%s', $ceiahabjba );
- if (!send_email( 'activation required', $ihfaeebij['email'], get_mailfrom( ), $ihfaeebij )) {
- print 'Send email with activation code failed.';
- }
- }
- function db_command($ebaiefheid) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $eaeiifcgdg = db_connect( );
- if (!( $bddjhheeeh( $ebaiefheid, $eaeiifcgdg ))) {
- exit( '' . 'query failed: ' . $ebaiefheid . '. The error was: ' . $ecjddahacc( ) );
- (bool)true;
- }
- return $dbijhbjjgj( );
- }
- function escape_array($eagfhjaffg) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $chffgagadc = array( );
- foreach ($eagfhjaffg as $eafcfgbgeg) {
- $chffgagadc[] = $bbagiecaaf( $eafcfgbgeg );
- }
- return $chffgagadc;
- }
- function query_main($ebaiefheid, $dbaifjadif, $baedjacjef = MYSQL_BOTH, $jadeeffdf = false) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $eaeiifcgdg = db_connect( );
- $cjcbddejeb = null;
- if (!$dcjbfhhefa( $dbaifjadif )) {
- $ebaiefheid = $dgbicgejbc( '%s', $bbagiecaaf( $dbaifjadif ), $ebaiefheid );
- } else {
- if (!empty( $dbaifjadif )) {
- $dbaifjadif = escape_array( $dbaifjadif );
- $ebaiefheid = $dcjedjgjif( $ebaiefheid, $dbaifjadif );
- }
- }
- if (!( $chffgagadc = $bddjhheeeh( $ebaiefheid, $eaeiifcgdg ))) {
- exit( 'Query didn\'t work: ' . $ebaiefheid . ' Error: ' . $ecjddahacc( ) );
- (bool)true;
- }
- return $chffgagadc;
- }
- function query_array($ebaiefheid, $dbaifjadif = array( )) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $cjcbddejeb = array( );
- $chffgagadc = query_main( $ebaiefheid, $dbaifjadif );
- $bdajeabifd = $bbhajdjdh( $chffgagadc, 0 );
- while ($ihfaeebij = $behijicbaj( $chffgagadc, MYSQL_ASSOC )) {
- $cjcbddejeb[$ihfaeebij[$bdajeabifd]] = $ihfaeebij;
- }
- return $cjcbddejeb;
- }
- function query_value($ebaiefheid, $dbaifjadif = array( )) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $chffgagadc = query_main( $ebaiefheid, $dbaifjadif );
- if ($ihfaeebij = $djfbcheejh( $chffgagadc )) {
- return $ihfaeebij[0];
- }
- return null;
- }
- function query_row($ebaiefheid, $dbaifjadif = array( )) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $chffgagadc = query_main( $ebaiefheid, $dbaifjadif );
- if ($ihfaeebij = $ecbdbcfhda( $chffgagadc )) {
- return $ihfaeebij;
- }
- return array( );
- }
- function query_pairs($ebaiefheid, $dbaifjadif = array( )) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $cjcbddejeb = array( );
- $chffgagadc = query_main( $ebaiefheid, $dbaifjadif );
- while ($ihfaeebij = $behijicbaj( $chffgagadc, MYSQL_NUM )) {
- $cjcbddejeb[$ihfaeebij[0]] = $ihfaeebij[1];
- }
- return $cjcbddejeb;
- }
- function query_values($ebaiefheid, $dbaifjadif = array( )) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $cjcbddejeb = array( );
- $chffgagadc = query_main( $ebaiefheid, $dbaifjadif );
- while ($ihfaeebij = $behijicbaj( $chffgagadc, MYSQL_NUM )) {
- $cjcbddejeb[] = $ihfaeebij[0];
- }
- return $cjcbddejeb;
- }
- function query_delete($bjdbhajdbg, $ecbjhddh, $jjfgfcigj) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $bjdbhajdbg = $bbagiecaaf( $bjdbhajdbg );
- $ecbjhddh = $bbagiecaaf( $ecbjhddh );
- if ($dcjbfhhefa( $jjfgfcigj )) {
- $jdeigfad = $dhaghibhcb( ',', $jjfgfcigj );
- $ccaiefjcbh = db_command( ( ( ( ( '' . 'DELETE FROM ' . $bjdbhajdbg . ' ' ) . 'W' ) . 'HERE ' . $ecbjhddh . ' IN (' . $jdeigfad . ')' ) . ';' ) );
- } else {
- $jjfgfcigj = $bbagiecaaf( $jjfgfcigj );
- $ccaiefjcbh = db_command( ( '' . 'DELETE FROM ' . $bjdbhajdbg . ' WHERE ' . $ecbjhddh . '=' . $jjfgfcigj . ';' ) );
- }
- return $ccaiefjcbh;
- }
- function get_dropdown($ebaiefheid, $bjfadjadjd = '', $dbaifjadif = array( )) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $cjcbddejeb = array( );
- if ($bjfadjadjd) {
- $cjcbddejeb[] = $bjfadjadjd;
- }
- $dcbafdiabc = query_pairs( $ebaiefheid, $dbaifjadif );
- if ($dcjbfhhefa( $dcbafdiabc )) {
- $cjcbddejeb = $cjcbddejeb + $dcbafdiabc;
- }
- return $cjcbddejeb;
- }
- function get_enum($jehcidbdi, $ddahjejghd) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $gicfhhefh = array( );
- $ihfaeebij = query_row( 'SHOW COLUMNS FROM %s LIKE \'%s\'', array( $jehcidbdi, $ddahjejghd ) );
- $bfbccjbdij( '/\'(.*?)\'/', $ihfaeebij['Type'], $gicfhhefh );
- return $gicfhhefh[1];
- }
- function get_balances($ceiahabjba) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- if ($ceiahabjba < 1) {
- exit( 'Tampering: 588' );
- }
- $bcaggbcgj['balances'] = query_array( 'select c.currency_id, c.currency_name, b.balance from balances as b inner join currencies as c on b.currency_id = c.currency_id where b.balance <> 0 and b.member_id =%s', $ceiahabjba );
- $behjcjgdcd = query_value( 'select sum(balance) as total from balances where member_id =%s', $ceiahabjba );
- $bcaggbcgj['total'] = ($behjcjgdcd == '' ? '0.00' : $behjcjgdcd);
- return $bcaggbcgj;
- }
- function check_balance($ceiahabjba, $ccaicjgccg) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- if (( $ceiahabjba < 1 || $ccaicjgccg < 1 )) {
- exit( 'Tampering: 600' );
- }
- $behjcjgdcd = query_value( 'select balance from balances where member_id=%s and currency_id=%s', array( $ceiahabjba, $ccaicjgccg ) );
- return (0 < $behjcjgdcd ? $behjcjgdcd : 0);
- }
- function transfer_funds($dibidjbcjg, $fgbgbiga, $djaciebhdj, $djiedbbdde, $caijeedgjc) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- if (check_balance( $dibidjbcjg, $djiedbbdde ) < $djaciebhdj) {
- exit( 'Non sufficient funds for the transfer.' );
- return null;
- }
- if (!change_balance( $dibidjbcjg, $djiedbbdde, 0 - $djaciebhdj )) {
- exit( 'Error changing balance for sender.' );
- }
- if (!change_balance( $fgbgbiga, $djiedbbdde, $djaciebhdj )) {
- exit( 'Error changing balance for recipient.' );
- }
- $dicacggdjf = query_value( 'select user_name from members where member_id=%s', $fgbgbiga );
- insert_data( 'transactions', array( 'member_id' => $dibidjbcjg, 'currency_id' => $djiedbbdde, 'amount' => $djaciebhdj, 'type' => 'user_transfer', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cdcaaiffe( ) ), 'description' => 'Transfered $' . $djaciebhdj . ' to member ' . $dicacggdjf . '. Memo: ' . $caijeedgjc ), false );
- $dicacggdjf = query_value( 'select user_name from members where member_id=%s', $dibidjbcjg );
- insert_data( 'transactions', array( 'member_id' => $fgbgbiga, 'currency_id' => $djiedbbdde, 'amount' => $djaciebhdj, 'type' => 'user_transfer', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cdcaaiffe( ) ), 'description' => 'Received $' . $djaciebhdj . ' from member ' . $dicacggdjf . '. Memo: ' . $caijeedgjc ), false );
- }
- function get_enabled_currencies($ecgfiiaiac) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- return query_array( 'select currencies.currency_id as id, concat(\'%s\',currency_id) as currency_id, currency_name from currencies where enabled = 1', $ecgfiiaiac );
- }
- function make_deposit($ceiahabjba, $bbjccgbdbi, $djaciebhdj, $beiiicdacc, $ccaicjgccg, $difhaiajgj, $cbihbbiiib) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $lang;
- global $settings;
- global $session;
- x0d( );
- $hjadjddei = 0;
- $cehgeiggfh = $cgbgjjdhaj( 'Y-m-d H:i:s' );
- if ($djaciebhdj <= 0) {
- return false;
- }
- if ($beiiicdacc == SOURCE_EXTERNAL) {
- $ecaaeaijeb = query_array( 'select * from deposits where trans_id=\'%s\' and currency_id=\'%s\'', array( $cbihbbiiib, $ccaicjgccg ) );
- if (!empty( $ecaaeaijeb )) {
- return false;
- }
- }
- $bfbjaddgbg = query_row( 'SELECT * FROM programs WHERE enabled=1 AND program_id=%s', $bbjccgbdbi );
- $djiedbbdde = query_row( 'SELECT * FROM currencies WHERE enabled=1 AND currency_id=%s', $ccaicjgccg );
- if (( empty( $bfbjaddgbg ) || empty( $djiedbbdde ) )) {
- return false;
- }
- if (( ( $bcgahficac['pending_deposits'] && $beiiicdacc == SOURCE_EXTERNAL ) || $beiiicdacc == SOURCE_MANUAL )) {
- if ($beiiicdacc == SOURCE_MANUAL) {
- $dfeeiajhhi = 'custom';
- } else {
- $dfeeiajhhi = 'trans_id';
- }
- $bdbacfifbi = insert_data( 'deposits', array( 'member_id' => $ceiahabjba, 'currency_id' => $ccaicjgccg, 'amount' => $djaciebhdj, 'original_amount' => $djaciebhdj, 'program_id' => $bbjccgbdbi, 'compound' => $difhaiajgj, 'pending_date' => $cehgeiggfh, 'status' => 'pending', $dfeeiajhhi => $cbihbbiiib ), false );
- return true;
- }
- if ($beiiicdacc == SOURCE_BALANCE) {
- if (!change_balance( $ceiahabjba, $ccaicjgccg, 0 - $djaciebhdj )) {
- return false;
- }
- $caijeedgjc = lang_wildcard( $cegcbcjjff[157], array( 'program_name' => $bfbjaddgbg['program_name'], 'currency_name' => $djiedbbdde['currency_name'] ) );
- $baedjacjef = 'deposit_balance';
- $bbgdgaejje = 'balance_referals';
- } else {
- if ($beiiicdacc == SOURCE_EXTERNAL) {
- $caijeedgjc = lang_wildcard( $cegcbcjjff[158], array( 'program_name' => $bfbjaddgbg['program_name'], 'currency_name' => $djiedbbdde['currency_name'] ) );
- $baedjacjef = 'deposit';
- $bbgdgaejje = 'deposit_referals';
- } else {
- if ($beiiicdacc == SOURCE_BONUS) {
- $caijeedgjc = lang_wildcard( $cegcbcjjff[159], array( 'program_name' => $bfbjaddgbg['program_name'] ) );
- $baedjacjef = 'deposit_bonus';
- $bbgdgaejje = 'bonus_referals';
- }
- }
- }
- if (0 < $bfbjaddgbg['deposit_bonus']) {
- $ceifijhigd = $djaciebhdj * ( $bfbjaddgbg['deposit_bonus'] / 100 );
- $hjadjddei = $djaciebhdj + $ceifijhigd;
- $caijeedgjc .= lang_wildcard( $cegcbcjjff[160], array( 'bonus' => $ceifijhigd, 'deposit_bonus' => $bfbjaddgbg['deposit_bonus'] ) );
- } else {
- $hjadjddei = $djaciebhdj;
- }
- $bdbacfifbi = insert_data( 'deposits', array( 'member_id' => $ceiahabjba, 'currency_id' => $ccaicjgccg, 'amount' => $hjadjddei, 'original_amount' => $hjadjddei, 'program_id' => $bbjccgbdbi, 'compound' => $difhaiajgj, 'pending_date' => $cehgeiggfh, 'deposit_date' => $cehgeiggfh, 'last_payout' => $cehgeiggfh, 'status' => 'enabled', 'trans_id' => $cbihbbiiib ), false );
- $cgjdjacjbh = insert_data( 'transactions', array( 'member_id' => $ceiahabjba, 'currency_id' => $ccaicjgccg, 'amount' => $djaciebhdj, 'type' => $baedjacjef, 'date' => $cehgeiggfh, 'deposit_id' => $bdbacfifbi, 'description' => $caijeedgjc ), false );
- pay_referral( $ceiahabjba, $djaciebhdj, $ccaicjgccg, $cehgeiggfh, $bbgdgaejje );
- $decgaggbba = query_row( 'select * from members where member_id=%s', $ceiahabjba );
- return true;
- }
- function pay_referral($ceiahabjba, $djaciebhdj, $ccaicjgccg, $cehgeiggfh = '', $bbgdgaejje = 'deposit_referals') {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $lang;
- global $settings;
- global $session;
- if ($cehgeiggfh == '') {
- $cehgeiggfh = $cgbgjjdhaj( 'Y-m-d H:i:s' );
- }
- if (!are_numeric( array( $ceiahabjba, $djaciebhdj, $ccaicjgccg ) )) {
- exit( 'Tampering: 691' );
- }
- $decgaggbba = query_row( 'select * from members where member_id=%s', $ceiahabjba );
- if (( $bcgahficac[$bbgdgaejje] == '1' && 0 < $decgaggbba['referal_id'] )) {
- $edbcfhdef = query_array( 'select * from referal_levels order by referal_level' );
- $cicgjihgah = $ceiahabjba;
- $hejfhacb = $decgaggbba['user_name'];
- foreach ($edbcfhdef as $dcjchchjfc) {
- if (0 < $decgaggbba['referal_id']) {
- $decgaggbba = query_row( 'select * from members where member_id=%s', $decgaggbba['referal_id'] );
- if (( $decgaggbba['status'] == 'enabled' && $decgaggbba['referral_commission'] )) {
- $hahdaaaeh = $djaciebhdj * ( $dcjchchjfc['percentage'] / 100 );
- $caijeedgjc = lang_wildcard( $cegcbcjjff[161], array( 'amount' => $djaciebhdj, 'user_name' => $hejfhacb, 'percentage' => $dcjchchjfc['percentage'], 'level' => $dcjchchjfc['referal_level'] ) );
- insert_data( 'transactions', array( 'member_id' => $decgaggbba['member_id'], 'currency_id' => $ccaicjgccg, 'amount' => $hahdaaaeh, 'type' => 'commission', 'date' => $cehgeiggfh, 'description' => $caijeedgjc ), false );
- change_balance( $decgaggbba['member_id'], $ccaicjgccg, $hahdaaaeh );
- continue;
- }
- continue;
- }
- break;
- }
- }
- }
- function change_balance($ceiahabjba, $ccaicjgccg, $djaciebhdj, $bhdgfcbaa = true) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- if (!are_numeric( array( $ceiahabjba, $djaciebhdj, $ccaicjgccg ) )) {
- exit( 'Tampering: 720' );
- }
- x0d( );
- $behjcjgdcd = query_row( 'select * from balances where member_id=%s and currency_id=%s', array( $ceiahabjba, $ccaicjgccg ) );
- if (empty( $behjcjgdcd )) {
- if (( $djaciebhdj < 0 && $bhdgfcbaa )) {
- return false;
- }
- insert_data( 'balances', array( 'currency_id' => $ccaicjgccg, 'member_id' => $ceiahabjba, 'balance' => $djaciebhdj, 'last_update' => $cgbgjjdhaj( 'Y-m-d H:i:s' ) ), false );
- return true;
- }
- if (( ( $djaciebhdj < 0 && $behjcjgdcd['balance'] + $djaciebhdj < 0 ) && $bhdgfcbaa )) {
- return false;
- }
- query_update( 'balances', 'balance_id', $behjcjgdcd['balance_id'], array( 'balance' => $behjcjgdcd['balance'] + $djaciebhdj, 'last_update' => $cgbgjjdhaj( 'Y-m-d H:i:s' ) ), false );
- return true;
- }
- function get_program_limits($bbjccgbdbi) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $dbdebbhdfj = array( );
- if (!are_numeric( array( $bbjccgbdbi ) )) {
- exit( 'Tampering: 749' );
- }
- $ihfaeebij = query_row( 'select MAX(max_amount), MIN(min_amount), MIN(max_amount) from program_levels where program_id=%s', $bbjccgbdbi );
- $dbdebbhdfj = $ihfaeebij;
- $ihfaeebij = query_row( 'select percentage from program_levels where program_id=%s and ISNULL(max_amount)', $bbjccgbdbi );
- if (0 < $bedbahigdc( $ihfaeebij )) {
- $dbdebbhdfj['max_amount'] = 0;
- }
- return $dbdebbhdfj;
- }
- function check_payouts() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $ccifdggcif = false;
- if ($dhddgedaaf( query_value( 'SELECT value FROM settings WHERE `key`=\'next_payout\';' ) ) < $cdcaaiffe( )) {
- db_command( 'LOCK TABLE settings WRITE;' );
- $ccifdggcif = db_command( 'UPDATE `settings` SET value=DATE_ADD(NOW(), INTERVAL 5 MINUTE) WHERE `key`=\'next_payout\' AND value < NOW()' );
- db_command( 'UNLOCK TABLES;' );
- if ($ccifdggcif == 1) {
- schedule( 'auto_payouts' );
- }
- }
- $ccifdggcif = false;
- if (0 < query_value( 'SELECT COUNT(*) FROM payments WHERE status=\'Scheduled\' AND schedule<=\'%s\';', $cgbgjjdhaj( 'Y-m-d H:i:s' ) )) {
- db_command( 'LOCK TABLE payments WRITE;' );
- if (0 < query_value( 'SELECT COUNT(*) FROM payments WHERE status=\'Scheduled\' AND schedule<=\'%s\';', $cgbgjjdhaj( 'Y-m-d H:i:s' ) )) {
- db_command( 'UPDATE payments SET status=\'Processing\' WHERE status=\'Scheduled\' AND (schedule + 0) <= (NOW() + 0);' );
- $ccifdggcif = true;
- }
- db_command( 'UNLOCK TABLES;' );
- if ($ccifdggcif) {
- schedule( 'sched_payouts' );
- }
- }
- }
- function schedule($ddadifjacj) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $jdhhhegcc = build_token( );
- $ecgjagebc = get_url( ) . ( '' . '/scheduler.php?c=' . $ddadifjacj . '&t=' . $jdhhhegcc );
- $cihegfjbif = $bhabaiicdf( );
- $hijfajai( $cihegfjbif, CURLOPT_URL, $ecgjagebc );
- $hijfajai( $cihegfjbif, CURLOPT_FRESH_CONNECT, true );
- $hijfajai( $cihegfjbif, CURLOPT_RETURNTRANSFER, true );
- $hijfajai( $cihegfjbif, CURLOPT_SSL_VERIFYPEER, false );
- $hijfajai( $cihegfjbif, CURLOPT_TIMEOUT, 1 );
- $chaedehdbg( $cihegfjbif );
- $bgdiaefjdd( $cihegfjbif );
- }
- function build_token() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $biafiifhcc = $cgbgjjdhaj( 'H' ) . get_url( );
- $befgcfchbf = query_value( 'SELECT value FROM settings WHERE `key`=\'next_payout\'' );
- return $cgcachefei( $biafiifhcc . $befgcfchbf );
- }
- function process_payouts() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $chibbbjjg = 0;
- $bfbjaddgbg = array( );
- $dciaiagaih = 0;
- $ebedfiddc = $dhddgedaaf( '+30 minutes', $cdcaaiffe( ) );
- x0d( );
- db_command( 'UPDATE `settings` SET value=DATE_ADD(NOW(), INTERVAL 1 MONTH) WHERE `key`=\'next_payout\'' );
- $cgehidgfbe = array( 1 => '+1 hour', 2 => '+1 day', 3 => '+1 week', 4 => '+2 weeks', 5 => '+1 month', 6 => '+2 months', 7 => '+3 months', 8 => '+4 months', 9 => '+6 months', 10 => '+1 year' );
- $dajdcieif = array( 1 => '1 HOUR', 2 => '1 DAY', 3 => '1 WEEK', 4 => '2 WEEK', 5 => '1 MONTH', 6 => '2 MONTH', 7 => '3 MONTH', 8 => '4 MONTH', 9 => '6 MONTH', 10 => '1 YEAR' );
- $chgcaeabcg = query_array( 'SELECT * FROM programs' );
- foreach ($chgcaeabcg as $bfbjaddgbg) {
- if ($bfbjaddgbg['payment_period'] == 11) {
- $ebgdghihfc = 'DATE_ADD(d.deposit_date, INTERVAL ' . $bfbjaddgbg['duration'] . ' DAY)';
- } else {
- $ebgdghihfc = 'DATE_ADD(d.last_payout, INTERVAL ' . $dajdcieif[$bfbjaddgbg['payment_period']] . ')';
- }
- $ebaiefheid = '
- SELECT
- d.deposit_id, d.status, d.member_id, d.program_id, d.deposit_date, d.last_payout, d.amount, d.original_amount, d.currency_id, d.compound, d.trans_id, d.pending_date, %s AS next_payout
- FROM deposits AS d
- INNER JOIN members AS m ON d.member_id = m.member_id
- WHERE d.status=\'enabled\' AND m.status=\'enabled\'
- AND %s < NOW()
- AND program_id=%s
- ORDER BY program_id, last_payout asc';
- $cgaeifbfjj = query_array( $ebaiefheid, array( $ebgdghihfc, $ebgdghihfc, $bfbjaddgbg['program_id'] ) );
- foreach ($cgaeifbfjj as $cjdjcgijdj) {
- if ($bfbjaddgbg['automated']) {
- $eabgbfdfaj( 50 );
- $bfjcdggddg = $dhddgedaaf( $cjdjcgijdj['next_payout'] );
- if (( $bfbjaddgbg['payment_period'] != 11 && !empty( $bfbjaddgbg['delay_earnings'] ) )) {
- $cfdigieffj = $dhddgedaaf( '+' . $bfbjaddgbg['delay_earnings'] . ' day', $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) );
- $bfjcdggddg = ($cfdigieffj < $bfjcdggddg ? $bfjcdggddg : $cfdigieffj);
- }
- while ($bfjcdggddg < $cdcaaiffe( )) {
- $dehegcjfgd = $dhddgedaaf( '+' . $bfbjaddgbg['duration'] . ' day', $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) );
- if (( 0 < $bfbjaddgbg['duration'] && $dehegcjfgd < $bfjcdggddg )) {
- end_deposit( $bfbjaddgbg, $cjdjcgijdj, $dehegcjfgd );
- break;
- }
- if (( ( ( $bfbjaddgbg['payment_period'] == 1 || $bfbjaddgbg['payment_period'] == 2 ) && $bfbjaddgbg['earns_workdays'] == 1 ) && ( $cgbgjjdhaj( 'w', $bfjcdggddg ) == 0 || $cgbgjjdhaj( 'w', $bfjcdggddg ) == 6 ) )) {
- } else {
- $cjhjgbhaeb = pay_earnings( $cjdjcgijdj, $bfjcdggddg, 0, '', 'Percentage', $bfbjaddgbg );
- $cjdjcgijdj['amount'] += $cjhjgbhaeb;
- }
- if ($bfbjaddgbg['payment_period'] == 11) {
- $bfjcdggddg = $dhddgedaaf( '+' . $bfbjaddgbg['duration'] . ' days', $bfjcdggddg );
- } else {
- $bfjcdggddg = $dhddgedaaf( $cgehidgfbe[$bfbjaddgbg['payment_period']], $bfjcdggddg );
- }
- if (( 0 < $bfbjaddgbg['duration'] && $dehegcjfgd < $bfjcdggddg )) {
- $bfjcdggddg = $dhddgedaaf( '+1 second', $dehegcjfgd );
- }
- if (( $cdcaaiffe( ) < $bfjcdggddg && $bfjcdggddg < $ebedfiddc )) {
- $ebedfiddc = $bfjcdggddg;
- continue;
- }
- }
- continue;
- }
- jmp;
- $dehegcjfgd = $dhddgedaaf( '+' . $bfbjaddgbg['duration'] . ' day', $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) );
- if (( 0 < $bfbjaddgbg['duration'] && $dehegcjfgd < $cdcaaiffe( ) )) {
- end_deposit( $bfbjaddgbg, $cjdjcgijdj, $dehegcjfgd );
- continue;
- }
- }
- }
- db_command( 'UPDATE `settings` SET value=DATE_ADD(NOW(), INTERVAL 1 HOUR) WHERE `key`=\'next_payout\'' );
- }
- function end_deposit($bfbjaddgbg, $cjdjcgijdj, $dehegcjfgd) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $lang;
- if ($bfbjaddgbg['return_principal'] == 1) {
- $ebdbbgaifa = $cjdjcgijdj['amount'] - $cjdjcgijdj['amount'] * ( $bfbjaddgbg['admin_fee'] / 100 );
- $bfgbdjgdj = lang_wildcard( $cegcbcjjff[162], array( 'program_name' => $bfbjaddgbg['program_name'], 'duration' => $bfbjaddgbg['duration'], 'amount' => $cjdjcgijdj['amount'] ) );
- if (0 < $bfbjaddgbg['admin_fee']) {
- $bfgbdjgdj .= lang_wildcard( $cegcbcjjff[163], array( 'admin_fee' => $bfbjaddgbg['admin_fee'] ) );
- }
- $bfgbdjgdj .= $cegcbcjjff[164];
- insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $ebdbbgaifa, 'type' => 'release_deposit', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $dehegcjfgd ), 'description' => $bfgbdjgdj ), false );
- change_balance( $cjdjcgijdj['member_id'], $cjdjcgijdj['currency_id'], $ebdbbgaifa );
- } else {
- $bfgbdjgdj = lang_wildcard( $cegcbcjjff[165], array( 'program_name' => $bfbjaddgbg['program_name'], 'duration' => $bfbjaddgbg['duration'] ) );
- insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => '0', 'type' => 'program_ended', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $dehegcjfgd ), 'description' => $bfgbdjgdj ), false );
- }
- query_update( 'deposits', 'deposit_id', $cjdjcgijdj['deposit_id'], array( 'status' => 'ended' ), false );
- }
- function x0b() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $smarty;
- global $r2d2;
- global $fdfd;
- global $session;
- global $settings;
- $bgdefebidg = '';
- $efgbicjgi = 'lalhf6&IGkbUtr&$ruh74757FJj8585*%^*';
- if (!$dehhifcahi->get( 'd44' )) {
- $dhddciecbi = $dffiaefjbg( 'store.cache' );
- } else {
- $dhddciecbi = $dehhifcahi->get( 'd44' );
- }
- $ciiicaceb = 24;
- $bbhhedhcji = $bcgahficac['lic'];
- if (!empty( $dhddciecbi )) {
- $daggjeedjh = decrypt( $dhddciecbi, $efgbicjgi );
- $ddbfaachga = $bfaddhcbhi( '|', $daggjeedjh );
- if ($bedbahigdc( $ddbfaachga ) < 3) {
- $chigahfdda = 0;
- } else {
- if ($ddbfaachga[1] != $_SERVER['HTTP_HOST']) {
- $chigahfdda = 0;
- } else {
- $chigahfdda = $ddbfaachga[0];
- }
- }
- } else {
- $chigahfdda = 0;
- }
- if (( ( empty( $chigahfdda ) || $ciiicaceb * 60 * 60 < $cdcaaiffe( ) - $chigahfdda ) || $cdcaaiffe( ) - $chigahfdda < 0 )) {
- $cicgehfbeg = 'http://www.tomacero.com/ck.php';
- $gbdbighdb = $daegejgghg( $dcbhjhghib( 'VALID_LICENSE-' . $cgbgjjdhaj( 'd', $cdcaaiffe( ) - $cgbgjjdhaj( 'Z', $cdcaaiffe( ) ) ) . '-' . $ddgeegdcia ) );
- $ciafiehjgb = false;
- $cihegfjbif = $bhabaiicdf( );
- $eaeiifcgdg = $_SERVER['HTTP_HOST'] . ':1:' . 'iOi7Yh7s5$fscv$dDH6sr$32h^';
- $dbbcejebbb = 'l=' . $fcihjhfei( $bbhhedhcji ) . '&c=' . $daegejgghg( $dcbhjhghib( $eaeiifcgdg ) ) . ':1';
- $bgdefebidg = url_get( $cicgehfbeg, $dbbcejebbb );
- if (( !empty( $bgdefebidg ) && $bgdefebidg == $gbdbighdb )) {
- if (!( $cahieefjji = @$cgjbbfaija( 'store.cache', 'w' ))) {
- exit( $cdhaiejgfi );
- (bool)true;
- }
- $dehhifcahi->set( 'd44', encrypt( '' . $cdcaaiffe( ) . '|' . $_SERVER['HTTP_HOST'] . '|' . $efgbicjgi, $efgbicjgi ) );
- $diggfiaece( $cahieefjji, $dehhifcahi->get( 'd44' ) );
- $bfaehghcij( $cahieefjji );
- $ciafiehjgb = true;
- return null;
- }
- $bdbcdicijb->assign( 'result', $bgdefebidg );
- $bdbcdicijb->display( 'invalid.tpl' );
- exit( );
- } else {
- return null;
- }
- exit( );
- }
- function x0c() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- x0b( );
- }
- function send_money($djaciebhdj, $ccaicjgccg, $caijeedgjc, $ceiahabjba = 0) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $lang;
- global $session;
- global $settings;
- global $glob;
- if (!are_numeric( array( $djaciebhdj, $ccaicjgccg, $ceiahabjba ) )) {
- exit( 'Tampering: 1404' );
- }
- x0d( );
- $cdjhbcjgeb = ($ceiahabjba == 0 ? $bjicjiadhb['member_id'] : $ceiahabjba);
- $cebfegiega = query_row( 'select * from member_accounts where currency_id=%s and member_id=%s', array( $ccaicjgccg, $cdjhbcjgeb ) );
- $ecigaciagh = $cebfegiega['account'];
- $djiedbbdde = query_row( 'select * from currencies where currency_id=%s', $ccaicjgccg );
- $bhhgjhifia = $djiedbbdde['param_1'];
- $cfjaebbbib = decrypt( $djiedbbdde['autopay_password'] );
- $cffeagiii = '';
- $decgcachic = '';
- if ($djiedbbdde['autopay_enabled'] != 1) {
- return array( 0 => '0', 1 => $cegcbcjjff[176] . $djiedbbdde['currency_name'] );
- }
- if (( ( !isset( $ecigaciagh ) || $debaggdfeh( $ecigaciagh ) == '' ) || ( $dchbacbcjc( $ecigaciagh ) && $ecigaciagh == 0 ) )) {
- return array( 0 => '0', 1 => $cegcbcjjff[177] . $djiedbbdde['currency_name'] );
- }
- if (!$dfhhgdcddf( 'curl_init' )) {
- return array( 0, 'Curl functions are not available' );
- }
- $cihegfjbif = $bhabaiicdf( );
- $caijeedgjc = $fcihjhfei( $caijeedgjc );
- if ($ccaicjgccg == 1) {
- $dbjjbgfbjh = new Egold( $bhhgjhifia, '', $cfjaebbbib );
- $chffgagadc = $dbjjbgfbjh->send_money( $ecigaciagh, $djaciebhdj, $caijeedgjc );
- $cffeagiii = $chffgagadc['batch'];
- $decgcachic = $chffgagadc['error'];
- } else {
- if ($ccaicjgccg == 2) {
- $ciacdacihg = new Pecunix( $bhhgjhifia, '', $cfjaebbbib );
- if ($djiedbbdde['param_2'] == 'PAYER') {
- $ccgegehcig = 'Payee';
- } else {
- $ccgegehcig = 'Payer';
- }
- $ciacdacihg->add_payment( '', $ecigaciagh, $djaciebhdj, $caijeedgjc, 'USD', $ccgegehcig );
- $chffgagadc = $ciacdacihg->send_money( );
- if ($chffgagadc['Receipt']['ReceiptId'] != '') {
- $cffeagiii = $chffgagadc['Receipt']['ReceiptId'];
- } else {
- $decgcachic = $chffgagadc['Text'] . ' - ' . $chffgagadc['Additional'];
- }
- } else {
- if ($ccaicjgccg == 3) {
- $bbbccjjjc = new LibertyReserve( $djiedbbdde['param_1'], '', '', $djiedbbdde['param_3'], $cfjaebbbib );
- $bbbccjjjc->add_payment( '', $ecigaciagh, $djaciebhdj, $caijeedgjc );
- $chffgagadc = $bbbccjjjc->send_money( );
- if (!empty( $chffgagadc['Error']['Text'] )) {
- $decgcachic = $chffgagadc['Error']['Text'];
- } else {
- $cffeagiii = $chffgagadc['Receipt']['ReceiptId'];
- }
- } else {
- if ($ccaicjgccg == 4) {
- $cddbffgadj = new $bieccigbce( $bcgahficac['gpg_path'] )( , './templates_c', $djiedbbdde['param_1'], decrypt( $djiedbbdde['param_4'] ), decrypt( $djiedbbdde['param_5'] ) );
- $cddbffgadj->add_payment( $ecigaciagh, $djaciebhdj, $cfbbbgghgh( $caijeedgjc ) );
- $chffgagadc = $cddbffgadj->send_money( );
- if ($chffgagadc['verified.list']['transaction']['id'] != '') {
- $cffeagiii = $chffgagadc['verified.list']['transaction']['id'];
- } else {
- $decgcachic = $chffgagadc['errorresponse.list']['errorresponse']['error']['text'] . ' - ' . $chffgagadc['errorresponse.list']['errorresponse']['error']['additional'];
- }
- } else {
- if ($ccaicjgccg == 7) {
- $cfbhbeihha = decrypt( $djiedbbdde['param_5'] );
- $beijgijada = new Vmoney( $bhhgjhifia, '', $cfjaebbbib, $cfbhbeihha );
- $beijgijada->add_payment( 1, $ecigaciagh, $djaciebhdj, $caijeedgjc );
- $chffgagadc = $beijgijada->send_money( );
- if ($chffgagadc['Status']['Code'] == 'Success') {
- $cffeagiii = $chffgagadc['Transfers']['Transfer']['Batch'];
- } else {
- $decgcachic = $chffgagadc['Transfers']['Transfer']['Status']['Message'];
- }
- } else {
- if ($ccaicjgccg == 21) {
- $bfjibgcbjg = new AlterGold( );
- $bfjibgcbjg->add_payment( $ecigaciagh, $djaciebhdj, 'USD', '', $caijeedgjc );
- $chffgagadc = $bfjibgcbjg->send_payments( $bhhgjhifia, $cfjaebbbib, $djiedbbdde['param_2'] );
- if ($chffgagadc[0]['STATUS'] == 'ERROR') {
- $decgcachic = $chffgagadc[0]['RESPONSE'];
- } else {
- $cffeagiii = $chffgagadc[0]['RESPONSE'];
- }
- } else {
- if ($ccaicjgccg == 22) {
- $dcadjgggaa = new PerfectMoney( );
- $dcadjgggaa->add_payment( $ecigaciagh, $djaciebhdj, 'USD', 'USD', $caijeedgjc );
- $chffgagadc = $dcadjgggaa->send_payments( $djiedbbdde['param_5'], $bhhgjhifia, $cfjaebbbib );
- if ($chffgagadc[0]['STATUS'] == 'ERROR') {
- $decgcachic = $chffgagadc[0]['RESPONSE'];
- } else {
- $cffeagiii = $chffgagadc[0]['RESPONSE'];
- }
- } else {
- return array( 0, $cegcbcjjff[178] );
- }
- }
- }
- }
- }
- }
- }
- if ($decgcachic != '') {
- return array( 0, $decgcachic );
- }
- return array( 1, $cffeagiii );
- }
- function pay_earnings($bdbacfifbi, $cgehidgfbe = '', $ecbfdefehb = 'NOT', $caijeedgjc = '', $dfiefaeaag = 'Percentage', $bfbjaddgbg = null) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $lang;
- global $settings;
- if ($cgehidgfbe == '') {
- $cgehidgfbe = $cdcaaiffe( );
- }
- $cciacfijhg = 0;
- $bdaaecjehi = 0;
- $hjadjddei = 0;
- $ebjdeaaie = 0;
- if ($dchbacbcjc( $bdbacfifbi )) {
- $cjdjcgijdj = query_row( 'SELECT * FROM deposits WHERE deposit_id=%s', $bdbacfifbi );
- } else {
- $cjdjcgijdj = $bdbacfifbi;
- }
- if (empty( $bfbjaddgbg )) {
- $bfbjaddgbg = query_row( 'SELECT * FROM programs WHERE program_id=%s', $cjdjcgijdj['program_id'] );
- }
- if ($ecbfdefehb == 'NOT') {
- $ecbfdefehb = get_level( $cjdjcgijdj['amount'], $bfbjaddgbg['program_id'] );
- }
- if ($dfiefaeaag == 'Percentage') {
- $cciacfijhg = $cjdjcgijdj['amount'] * $ecbfdefehb / 100;
- } else {
- $cciacfijhg = $ecbfdefehb;
- }
- $chffgagadc = check_compounding( $bfbjaddgbg, $cjdjcgijdj['compound'] );
- if (( $chffgagadc[0] == 'OK' || $chffgagadc[0] == 'FORCED' )) {
- $cefciagdeh = $chffgagadc[1];
- } else {
- $cefciagdeh = 0;
- }
- if (0 < $cefciagdeh) {
- $bdaaecjehi = $cciacfijhg * ( $cefciagdeh / 100 );
- if (( ( !$bfbjaddgbg['force_compounding'] && $bfbjaddgbg['compounding_max_amount'] < $bdaaecjehi ) && 0 < $bfbjaddgbg['compounding_max_amount'] )) {
- $hjadjddei = $bfbjaddgbg['compounding_max_amount'];
- $ebjdeaaie = $cciacfijhg - $hjadjddei;
- } else {
- $hjadjddei = $bdaaecjehi;
- $ebjdeaaie = $cciacfijhg - $bdaaecjehi;
- }
- } else {
- $ebjdeaaie = $cciacfijhg;
- $hjadjddei = 0;
- }
- if (( $caijeedgjc == '' && $dfiefaeaag == 'Percentage' )) {
- $caijeedgjc = lang_wildcard( $cegcbcjjff[166], array( 'deposit_amount' => $cjdjcgijdj['amount'], 'program_name' => $bfbjaddgbg['program_name'], 'percentage' => $ecbfdefehb ) );
- } else {
- if (( $caijeedgjc == '' && $dfiefaeaag == 'Amount' )) {
- $caijeedgjc = lang_wildcard( $cegcbcjjff[167], array( 'deposit_amount' => $cjdjcgijdj['amount'], 'program_name' => $bfbjaddgbg['program_name'], 'percentage' => $ecbfdefehb ) );
- } else {
- $caijeedgjc = lang_wildcard( $caijeedgjc, array( 'deposit_amount' => $cjdjcgijdj['amount'], 'program_name' => $bfbjaddgbg['program_name'], 'percentage' => $ecbfdefehb ) );
- }
- }
- $beadbbagdd = insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $cciacfijhg, 'type' => 'earnings', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ), 'description' => $caijeedgjc ), false );
- if ($ebjdeaaie != 0) {
- if (0 < $ebjdeaaie) {
- $cjbbbagcif = autopay_available( $cjdjcgijdj['currency_id'], $cjdjcgijdj['member_id'], $ebjdeaaie );
- }
- if (0 < $cjbbbagcif) {
- $chffgagadc = send_money( $cjbbbagcif, $cjdjcgijdj['currency_id'], $cegcbcjjff[168] . $bcgahficac['site_name'], $cjdjcgijdj['member_id'] );
- if ($chffgagadc[0] == 0) {
- $bfgbdjgdj = lang_wildcard( $cegcbcjjff[169], array( 'autopay' => $cjbbbagcif, 'currency_id' => $cjdjcgijdj['currency_id'] ) ) . $chffgagadc[1];
- insert_data( 'transactions', array( 'member_id' => 1, 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $cjbbbagcif, 'type' => 'error', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ), 'description' => $bfgbdjgdj ), false );
- $cjbbbagcif = 0;
- } else {
- $bfgbdjgdj = lang_wildcard( $cegcbcjjff[170], array( 'earning_id' => $beadbbagdd, 'autopay' => $cjbbbagcif ) ) . $chffgagadc[1];
- insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $cjbbbagcif, 'type' => 'withdrawal_auto', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ), 'description' => $bfgbdjgdj ), false );
- $ebjdeaaie -= $cjbbbagcif;
- }
- }
- if ($ebjdeaaie != 0) {
- $bfgbdjgdj = $cegcbcjjff[171] . $beadbbagdd . $cegcbcjjff[172];
- insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $ebjdeaaie, 'type' => 'to_account', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ), 'description' => $bfgbdjgdj ), false );
- change_balance( $cjdjcgijdj['member_id'], $cjdjcgijdj['currency_id'], $ebjdeaaie, false );
- }
- }
- if ($hjadjddei != 0) {
- $bfgbdjgdj = lang_wildcard( $cegcbcjjff[173], array( 'earning_id' => $beadbbagdd, 'program_name' => $bfbjaddgbg['program_name'] ) );
- insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $hjadjddei, 'type' => 'deposit_compound', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ), 'description' => $bfgbdjgdj ), false );
- $cjdjcgijdj['amount'] += $hjadjddei;
- }
- query_update( 'deposits', 'deposit_id', $cjdjcgijdj['deposit_id'], array( 'amount' => $cjdjcgijdj['amount'], 'last_payout' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ) ), false );
- return $hjadjddei;
- }
- function check_compounding($bfbjaddgbg, $djaciebhdj) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $dageeajhga = 0;
- if (( !$bfbjaddgbg['allow_compounding'] && $djaciebhdj == 0 )) {
- return array( 'OK', 0 );
- }
- if (( !$bfbjaddgbg['allow_compounding'] && 0 < $djaciebhdj )) {
- return array( 'NOT_ALLOWED', 0 );
- }
- if ($bfbjaddgbg['compounding_fixed_percents']) {
- $dbfjdcebhf = $bfaddhcbhi( ',', $bfbjaddgbg['compounding_fixed_percents'] );
- if (0 < $djaciebhdj) {
- if ($cajchcaff( $djaciebhdj, $dbfjdcebhf )) {
- return array( 'OK', $djaciebhdj );
- }
- if ($bfbjaddgbg['force_compounding']) {
- return array( 'INVALID_FIXED', $cegfiaejgi( $dbfjdcebhf ) );
- }
- return array( 'INVALID_FIXED', 0 );
- }
- if ($bfbjaddgbg['force_compounding']) {
- return array( 'FORCED', $cegfiaejgi( $dbfjdcebhf ) );
- }
- return array( 'OK', 0 );
- }
- if (0 < $djaciebhdj) {
- if (( $bfbjaddgbg['compounding_min_percent'] <= $djaciebhdj && $djaciebhdj <= $bfbjaddgbg['compounding_max_percent'] )) {
- return array( 'OK', $djaciebhdj );
- }
- if (( $djaciebhdj < $bfbjaddgbg['compounding_min_percent'] && $bfbjaddgbg['force_compounding'] )) {
- return array( 'FORCED', $bfbjaddgbg['compounding_min_percent'] );
- }
- if (( $djaciebhdj < $bfbjaddgbg['compounding_min_percent'] && !$bfbjaddgbg['force_compounding'] )) {
- return array( 'LOW', $bfbjaddgbg['compounding_min_percent'] );
- }
- return array( 'HIGH', $bfbjaddgbg['compounding_max_percent'] );
- }
- if ($bfbjaddgbg['force_compounding']) {
- return array( 'FORCED', $bfbjaddgbg['compounding_min_percent'] );
- }
- return array( 'OK', 0 );
- }
- function get_level($djaciebhdj, $bbjccgbdbi, $bjcgcfbda = false) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $ebaiefheid = 'SELECT percentage
- FROM `program_levels`
- WHERE program_id =%s
- AND (( %s BETWEEN min_amount AND max_amount )
- OR ( %s >= min_amount AND ISNULL( max_amount )) ';
- if (!$bjcgcfbda) {
- $ebaiefheid .= '
- OR ( %s >= min_amount
- AND %s >= max_amount ) ';
- }
- $ebaiefheid .= ') ORDER BY min_amount DESC
- LIMIT 1 ;';
- return query_value( $ebaiefheid, array( $bbjccgbdbi, $djaciebhdj, $djaciebhdj, $djaciebhdj, $djaciebhdj ) );
- }
- function encrypt($baghbijhjj, $bbbegiache = '') {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $r2d2;
- global $bf;
- if (empty( $bbbegiache )) {
- $bbbegiache = $ddgeegdcia;
- }
- $gaijaiche->setKey( $bbbegiache );
- return $bdbhjeebje( $gaijaiche->encrypt( $baghbijhjj ) );
- }
- function decrypt($baghbijhjj, $bbbegiache = '') {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $r2d2;
- global $bf;
- if (empty( $bbbegiache )) {
- $bbbegiache = $ddgeegdcia;
- }
- $gaijaiche->setKey( $bbbegiache );
- return $debaggdfeh( $gaijaiche->decrypt( $cffedfaabj( $baghbijhjj ) ) );
- }
- function parsexml($ejcbaihji) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $dcgjbhibag = array( );
- $fafbdccia = getelement( $ejcbaihji, 'balanceresponse.list' );
- if ($fafbdccia != '') {
- $dcgjbhibag['status'] = 'balance';
- $dghcibhdhg = false;
- if ($chdedeaji = $dejaahdhaa( $fafbdccia, '<balance>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bghcfafdd = $behjgejeae( $fafbdccia ) - $behjgejeae( $chdedeaji );
- }
- if ($daaebfdeeb = $dejaahdhaa( $fafbdccia, '</balance>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bcagifecci = $behjgejeae( $fafbdccia ) - $behjgejeae( $daaebfdeeb );
- }
- if (!$dghcibhdhg) {
- $fhhebajii = $debaggdfeh( $dfiacgeceb( $fafbdccia, $bghcfafdd + 9, $bcagifecci - 9 ) );
- $fafbdccia = $debaggdfeh( $dfiacgeceb( $fafbdccia, $bcagifecci + 10 ) );
- $dcgjbhibag['amount'] = getelement( $fhhebajii, 'amount' );
- if ($chdedeaji = $dejaahdhaa( $fafbdccia, '<balance>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bghcfafdd = $behjgejeae( $fafbdccia ) - $behjgejeae( $chdedeaji );
- }
- if ($daaebfdeeb = $dejaahdhaa( $fafbdccia, '</balance>' ) === false) {
- $dghcibhdhg = true;
- continue;
- }
- $bcagifecci = $behjgejeae( $fafbdccia ) - $behjgejeae( $daaebfdeeb );
- continue;
- }
- }
- $bjadcfabgh = getelement( $ejcbaihji, 'verified.list' );
- if ($bjadcfabgh != '') {
- $dcgjbhibag['status'] = 'ok';
- $dghcibhdhg = false;
- if ($chdedeaji = $dejaahdhaa( $bjadcfabgh, '<transaction>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bghcfafdd = $behjgejeae( $bjadcfabgh ) - $behjgejeae( $chdedeaji );
- }
- if ($daaebfdeeb = $dejaahdhaa( $bjadcfabgh, '</transaction>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bcagifecci = $behjgejeae( $bjadcfabgh ) - $behjgejeae( $daaebfdeeb );
- }
- if (!$dghcibhdhg) {
- $ibiijhcah = $debaggdfeh( $dfiacgeceb( $bjadcfabgh, $bghcfafdd + 13, $bcagifecci - 13 ) );
- $bjadcfabgh = $debaggdfeh( $dfiacgeceb( $bjadcfabgh, $bcagifecci + 14 ) );
- $dcgjbhibag['batch'] = getelement( $ibiijhcah, 'id' );
- $dcgjbhibag['payee'] = getelement( $ibiijhcah, 'payee' );
- $dcgjbhibag['payer'] = getelement( $ibiijhcah, 'payer' );
- $dcgjbhibag['amount'] = getelement( $ibiijhcah, 'amount' );
- $dcgjbhibag['metal'] = getelement( $ibiijhcah, 'metal' );
- $dcgjbhibag['unit'] = getelement( $ibiijhcah, 'unit' );
- $dcgjbhibag['memo'] = getelement( $ibiijhcah, 'memo' );
- $dcgjbhibag['exchange'] = getelement( $ibiijhcah, 'exchange' );
- $dcgjbhibag['fee'] = getelement( $ibiijhcah, 'fee' );
- if ($chdedeaji = $dejaahdhaa( $bjadcfabgh, '<transaction>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bghcfafdd = $behjgejeae( $bjadcfabgh ) - $behjgejeae( $chdedeaji );
- }
- if ($daaebfdeeb = $dejaahdhaa( $bjadcfabgh, '</transaction>' ) === false) {
- $dghcibhdhg = true;
- continue;
- }
- $bcagifecci = $behjgejeae( $bjadcfabgh ) - $behjgejeae( $daaebfdeeb );
- continue;
- }
- }
- $dcbgdfcbgg = getelement( $ejcbaihji, 'failed.list' );
- if ($dcbgdfcbgg != '') {
- $dcgjbhibag['status'] = 'error';
- $dghcibhdhg = false;
- if ($chdedeaji = $dejaahdhaa( $dcbgdfcbgg, '<failed>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bghcfafdd = $behjgejeae( $dcbgdfcbgg ) - $behjgejeae( $chdedeaji );
- }
- if ($daaebfdeeb = $dejaahdhaa( $dcbgdfcbgg, '</failed>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bcagifecci = $behjgejeae( $dcbgdfcbgg ) - $behjgejeae( $daaebfdeeb );
- }
- if (!$dghcibhdhg) {
- $dbhdiibebe = $debaggdfeh( $dfiacgeceb( $dcbgdfcbgg, $bghcfafdd + 13, $bcagifecci - 13 ) );
- $dcbgdfcbgg = $debaggdfeh( $dfiacgeceb( $dcbgdfcbgg, $bcagifecci + 14 ) );
- $dcgjbhibag['text'] = getelement( $dbhdiibebe, 'error' );
- if ($chdedeaji = $dejaahdhaa( $dcbgdfcbgg, '<failed>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bghcfafdd = $behjgejeae( $dcbgdfcbgg ) - $behjgejeae( $chdedeaji );
- }
- if ($daaebfdeeb = $dejaahdhaa( $dcbgdfcbgg, '</failed>' ) === false) {
- $dghcibhdhg = true;
- continue;
- }
- $bcagifecci = $behjgejeae( $dcbgdfcbgg ) - $behjgejeae( $daaebfdeeb );
- continue;
- }
- }
- $bffigghbgc = getelement( $ejcbaihji, 'errorresponse.list' );
- if ($bffigghbgc != '') {
- $dcgjbhibag['status'] = 'error';
- $dghcibhdhg = false;
- if ($chdedeaji = $dejaahdhaa( $bffigghbgc, '<errorresponse>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bghcfafdd = $behjgejeae( $bffigghbgc ) - $behjgejeae( $chdedeaji );
- }
- if ($daaebfdeeb = $dejaahdhaa( $bffigghbgc, '</errorresponse>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bcagifecci = $behjgejeae( $bffigghbgc ) - $behjgejeae( $daaebfdeeb );
- }
- if (!$dghcibhdhg) {
- $ddgeddgfgg = $debaggdfeh( $dfiacgeceb( $bffigghbgc, $bghcfafdd + 15, $bcagifecci - 15 ) );
- $didegccdci = false;
- if ($chhjcfciie = $dejaahdhaa( $ddgeddgfgg, '<error>' ) === false) {
- $didegccdci = true;
- } else {
- $djggaijdff = $behjgejeae( $ddgeddgfgg ) - $behjgejeae( $chhjcfciie );
- }
- if ($dgbcifjcdh = $dejaahdhaa( $ddgeddgfgg, '</error>' ) === false) {
- $didegccdci = true;
- } else {
- $cjijgbcacd = $behjgejeae( $ddgeddgfgg ) - $behjgejeae( $dgbcifjcdh );
- }
- if (!$didegccdci) {
- $bdbihcec = $debaggdfeh( $dfiacgeceb( $ddgeddgfgg, $djggaijdff + 7, $cjijgbcacd - 7 ) );
- $ddgeddgfgg = $debaggdfeh( $dfiacgeceb( $ddgeddgfgg, $cjijgbcacd + 8 ) );
- $dcgjbhibag['text'] = getelement( $bdbihcec, 'text' );
- $dcgjbhibag['additional'] = getelement( $bdbihcec, 'additional' );
- if ($chhjcfciie = $dejaahdhaa( $ddgeddgfgg, '<error>' ) === false) {
- $didegccdci = true;
- } else {
- $djggaijdff = $behjgejeae( $ddgeddgfgg ) - $behjgejeae( $chhjcfciie );
- }
- if ($dgbcifjcdh = $dejaahdhaa( $ddgeddgfgg, '</error>' ) === false) {
- $didegccdci = true;
- continue;
- }
- $cjijgbcacd = $behjgejeae( $ddgeddgfgg ) - $behjgejeae( $dgbcifjcdh );
- continue;
- }
- $bffigghbgc = $debaggdfeh( $dfiacgeceb( $bffigghbgc, $bcagifecci + 16 ) );
- if ($chdedeaji = $dejaahdhaa( $bffigghbgc, '<errorresponse>' ) === false) {
- $dghcibhdhg = true;
- } else {
- $bghcfafdd = $behjgejeae( $bffigghbgc ) - $behjgejeae( $chdedeaji );
- }
- if ($daaebfdeeb = $dejaahdhaa( $bffigghbgc, '</errorresponse>' ) === false) {
- $dghcibhdhg = true;
- continue;
- }
- $bcagifecci = $behjgejeae( $bffigghbgc ) - $behjgejeae( $daaebfdeeb );
- continue;
- }
- }
- return $dcgjbhibag;
- }
- function getelement($ghaehjgeb, $dcjhhcjiai) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $ccacaiegjd = $behjgejeae( $dcjhhcjiai ) + 2;
- $bghcfafdd = $cbhcjdfhih( $ghaehjgeb, '<' . $dcjhhcjiai . '>' );
- $bcagifecci = $cbhcjdfhih( $ghaehjgeb, '</' . $dcjhhcjiai . '>' );
- if (( $bghcfafdd == false || $bcagifecci == false )) {
- return '';
- }
- $eafcfgbgeg = $debaggdfeh( $dfiacgeceb( $ghaehjgeb, $bghcfafdd + $ccacaiegjd, $bcagifecci - ( $bghcfafdd + $ccacaiegjd ) ) );
- return $eafcfgbgeg;
- }
- function autopay_available($djiedbbdde, $ceiahabjba, $djaciebhdj) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- if (!are_numeric( array( $ceiahabjba, $djaciebhdj ) )) {
- exit( 'Tampering: 1291' );
- }
- if (!$dcjbfhhefa( $djiedbbdde )) {
- if (!are_numeric( array( $djiedbbdde ) )) {
- exit( 'Tampering: 1293' );
- }
- $djiedbbdde = query_row( 'select * from currencies where currency_id=%s', $djiedbbdde );
- }
- $ecigaciagh = query_row( 'select * from member_accounts where member_id=%s and currency_id=%s', array( $ceiahabjba, $djiedbbdde['currency_id'] ) );
- if (( $djiedbbdde['withdraw_enabled'] == 1 && !empty( $ecigaciagh ) )) {
- if ($djiedbbdde['withdraw_dailymax'] == 0) {
- return $djaciebhdj;
- }
- $cfcdahjigg = $djiedbbdde['withdraw_dailymax'] - query_value( 'select sum(amount) from transactions where member_id=%s and `type`=\'withdrawal_auto\' and currency_id=%s and SUBSTRING(`date` FROM 1 FOR 10)=SUBSTRING(CURRENT_DATE FROM 1 FOR 10)', array( $ceiahabjba, $djiedbbdde['currency_id'] ) );
- return ($cfcdahjigg < $djaciebhdj ? $cfcdahjigg : $djaciebhdj);
- }
- return 0;
- }
- function process_withdrawal($ccaicjgccg, $djaciebhdj, $caijeedgjc) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $lang;
- global $session;
- global $settings;
- global $glob;
- if (!are_numeric( array( $ccaicjgccg, $djaciebhdj ) )) {
- exit( 'Tampering: 1314' );
- }
- x0b( );
- $cehgeiggfh = $cgbgjjdhaj( 'Y-m-d H:i:s' );
- $cjcbddejeb = array( );
- $ceiahabjba = $bjicjiadhb['member_id'];
- $fafdiihej = 0;
- $cffebghega = 0;
- $djiedbbdde = query_row( 'select * from currencies where currency_id=%s', $ccaicjgccg );
- $ecigaciagh = query_row( 'select * from member_accounts where member_id=%s and currency_id=%s', array( $ceiahabjba, $ccaicjgccg ) );
- $gcjdjgafh = 'Withdrawal from ' . $bcgahficac['site_name'];
- $behjcjgdcd = query_value( 'select balance from balances where currency_id=%s and member_id=%s', array( $ccaicjgccg, $ceiahabjba ) );
- if ($behjcjgdcd < $djaciebhdj) {
- exit( 'balance error' );
- }
- $fafdiihej = autopay_available( $djiedbbdde, $ceiahabjba, $djaciebhdj );
- $cffebghega = $djaciebhdj - $fafdiihej;
- if (0 < $fafdiihej) {
- $chffgagadc = send_money( $fafdiihej, $ccaicjgccg, $gcjdjgafh );
- if ($chffgagadc[0] == 0) {
- $caijeedgjc = lang_wildcard( $cegcbcjjff[174], array( 'autopay_total' => $fafdiihej, 'currency_name' . $djiedbbdde['currency_name'], 'user_name' => $bjicjiadhb['user_name'] ) ) . $chffgagadc[1];
- insert_data( 'transactions', array( 'member_id' => 1, 'currency_id' => $ccaicjgccg, 'amount' => $fafdiihej, 'type' => 'error', 'date' => $cehgeiggfh, 'description' => $caijeedgjc ), false );
- $cffebghega += $fafdiihej;
- $fafdiihej = 0;
- } else {
- change_balance( $ceiahabjba, $ccaicjgccg, 0 - $fafdiihej, false );
- $bfgbdjgdj = lang_wildcard( $cegcbcjjff[175], array( 'autopay_total' => $fafdiihej, 'amount' => $djaciebhdj, 'currency_name' => $djiedbbdde['currency_name'] ) ) . $chffgagadc[1];
- insert_data( 'transactions', array( 'member_id' => $ceiahabjba, 'currency_id' => $ccaicjgccg, 'amount' => $fafdiihej, 'type' => 'withdrawal_auto', 'date' => $cehgeiggfh, 'description' => $bfgbdjgdj ), false );
- }
- }
- if (0 < $cffebghega) {
- if (!change_balance( $ceiahabjba, $ccaicjgccg, 0 - $cffebghega )) {
- exit( 'Not enough balance.' );
- }
- insert_data( 'transactions', array( 'member_id' => $ceiahabjba, 'currency_id' => $ccaicjgccg, 'amount' => $cffebghega, 'type' => 'withdraw_pending', 'date' => $cehgeiggfh, 'description' => $caijeedgjc ), false );
- }
- $cjcbddejeb['auto'] = $fafdiihej;
- $cjcbddejeb['request'] = $cffebghega;
- return $cjcbddejeb;
- }
- function get_gpg_version($dfaebfgacj) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $cieihjgje = 0;
- $cgigficfdi = $bieccigbce( $dfaebfgacj ) . ' --version';
- $cggageeeih = @$hijbfbifg( '' . $cgigficfdi, 'r' );
- if ($cggageeeih) {
- while (!$dijiajhddj( $cggageeeih )) {
- $dcjcchfbbf = $dfagifchfc( $cggageeeih, 4096 );
- $bhcbfgajca = $cibejgfejf( $dcjcchfbbf, 'gpg (GnuPG)' );
- if (0 < $behjgejeae( $bhcbfgajca )) {
- $cieihjgje = $dhbjgifdfg( '/[\n\r]/', '', $dfiacgeceb( $bhcbfgajca, 11 ) );
- continue;
- }
- }
- $icjbfbbgh( $cggageeeih );
- }
- return $cieihjgje;
- }
- function change_password($ceiahabjba, $cfjaebbbib) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $settings;
- if (!are_numeric( array( $ceiahabjba ) )) {
- exit( 'Tampering: 1532' );
- }
- if ($bcgahficac['use_encryption']) {
- $cfjaebbbib = $cgcachefei( $cfjaebbbib );
- }
- query_update( 'members', 'member_id', $ceiahabjba, array( 'password' => $cfjaebbbib, 'update_on' => $cgbgjjdhaj( 'Y-m-d H:i:s' ) ), false );
- }
- function send_invite($gcdgijcgd, $ceeigahfjc) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $session;
- global $glob;
- $bjjbeeeibg = array( 'dumb' );
- $chcideice = '';
- $decgaggbba = query_row( 'select * from members where member_id=%s', $bjicjiadhb['member_id'] );
- $hejfhacb = $bjicjiadhb['user_name'];
- while (0 < $bedbahigdc( $bjjbeeeibg )) {
- $chcideice = generate_password( 8, true, false, true );
- $bjjbeeeibg = query_array( 'select * from invitations where code=\'%s\'', $chcideice );
- }
- if (send_email( 'Invite', '"' . $ceeigahfjc . '"' . ' <' . $gcdgijcgd . '>', $decgaggbba['email'], array( 'invite_code' => $chcideice, 'invite_name' => $ceeigahfjc, 'user_name' => $hejfhacb ) )) {
- insert_data( 'invitations', array( 'email' => $gcdgijcgd, 'name' => $ceeigahfjc, 'code' => $chcideice, 'sent_on' => $cgbgjjdhaj( 'Y-m-d H:i:s' ), 'member_id' => $bjicjiadhb['member_id'] ), false );
- return $chcideice;
- }
- return '';
- }
- function lang_wildcard($bfgbdjgdj, $beiifabbfd) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- foreach ($beiifabbfd as $dabifdabdd => $gbdbighdb) {
- $bfgbdjgdj = $dhbjgifdfg( '' . '/#' . $dabifdabdd . '#/', $gbdbighdb, $bfgbdjgdj );
- }
- return $bfgbdjgdj;
- }
- function check_pin($bafaehabhi, $chcideice) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $settings;
- if (!are_numeric( array( $bafaehabhi ) )) {
- exit( 'Tampering: 1569' );
- }
- $cfbhbeihha = query_row( 'SELECT * FROM pins WHERE member_id=%s ORDER BY created_on DESC LIMIT 1', $bafaehabhi );
- if (empty( $cfbhbeihha )) {
- return false;
- }
- $dehabegabd = $dhddgedaaf( $cfbhbeihha['created_on'] ) + $bcgahficac['code_duration'] * 60;
- if (( $dehabegabd < $cdcaaiffe( ) || $cfbhbeihha['pin'] != $chcideice )) {
- return false;
- }
- return true;
- }
- function check_ip($bafaehabhi) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- if (!are_numeric( array( $bafaehabhi ) )) {
- exit( 'Tampering: 1580' );
- }
- $cffdaadfah = query_value( 'SELECT IP FROM logins WHERE member_id=%s ORDER BY login_time DESC LIMIT 1;', $bafaehabhi );
- if (( empty( $cffdaadfah ) || $cffdaadfah == $_SERVER['REMOTE_ADDR'] )) {
- return true;
- }
- send_pin( $bafaehabhi );
- return false;
- }
- function send_pin($bafaehabhi) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $settings;
- if (!are_numeric( array( $bafaehabhi ) )) {
- exit( 'Tampering: 1593' );
- }
- $chcideice = generate_password( 6, true, false, true );
- $ghffjbia = $cdcaaiffe( );
- $ddbebaicic = $ghffjbia + $bcgahficac['code_duration'] * 60;
- $dfehfhdhb = insert_data( 'pins', array( 'member_id' => $bafaehabhi, 'pin' => $chcideice, 'created_on' => $cgbgjjdhaj( 'Y-m-d H:i:s', $ghffjbia ) ), false, false );
- $decgaggbba = query_row( 'SELECT * FROM members WHERE member_id=%s', $bafaehabhi );
- send_email( 'send_pin', $decgaggbba['email'], get_mailfrom( ), $chjhcibgjd( $decgaggbba, array( 'ip' => $_SERVER['REMOTE_ADDR'], 'pin' => $chcideice, 'expires' => $cgbgjjdhaj( 'r', $ddbebaicic ), 'attempt_time' => $cgbgjjdhaj( 'r', $ghffjbia ) ) ) );
- }
- function do_login($ihfaeebij) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $session;
- global $glob;
- if (!$dcjbfhhefa( $ihfaeebij )) {
- $ihfaeebij = query_row( 'SELECT * FROM members WHERE member_id=%s', $ihfaeebij );
- }
- $bjicjiadhb['member_id'] = $ihfaeebij['member_id'];
- $bjicjiadhb['user_name'] = $ihfaeebij['user_name'];
- $bjicjiadhb['user_data'] = $ihfaeebij;
- $dehhifcahi->set( 'global', $bjicjiadhb );
- insert_data( 'logins', array( 'member_id' => $bjicjiadhb['member_id'], 'IP' => $_SERVER['REMOTE_ADDR'], 'login_time' => $cgbgjjdhaj( 'Y-m-d H:i:s' ) ), false );
- }
- function is_alpha($eafcfgbgeg) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- return ( empty( $eafcfgbgeg ) || $dhbagcgcjc( '/^[A-Za-z]$/', $eafcfgbgeg ) );
- }
- function is_alphanumeric($eafcfgbgeg) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- return ( empty( $eafcfgbgeg ) || $dhbagcgcjc( ( ( '' . '/' ) . '^' ) . '[a-zA-Z0-9 ]+$/', $eafcfgbgeg ) );
- }
- function is_alphadash($eafcfgbgeg) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- return ( empty( $eafcfgbgeg ) || $dhbagcgcjc( ( ( ( '' . '/' ) . '^' ) . '[' ) . 'a-zA-Z0-9 -_]+$/', $eafcfgbgeg ) );
- }
- function is_numericdash($eafcfgbgeg) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- return ( empty( $eafcfgbgeg ) || $dhbagcgcjc( ( ( '' . '/' ) . '^' ) . '[0-9.-]+$/', $eafcfgbgeg ) );
- }
- function is_email($gcdgijcgd) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- return ( empty( $gcdgijcgd ) || $bhjchfgddi( '' . '^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$', $cichchgfhf( $gcdgijcgd ) ) );
- }
- function are_numeric($chjbhdhehh) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- if (!$dcjbfhhefa( $chjbhdhehh )) {
- return ( empty( $chjbhdhehh ) || $dchbacbcjc( $chjbhdhehh ) );
- }
- foreach ($chjbhdhehh as $eafcfgbgeg) {
- if (( !empty( $eafcfgbgeg ) && !$dchbacbcjc( $eafcfgbgeg ) )) {
- return false;
- continue;
- }
- }
- return true;
- }
- function x0d() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- x0c( );
- }
- function valid_referral($ciddaeiga) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- if ($ciddaeiga < 1) {
- return false;
- }
- $decgaggbba = query_value( 'SELECT user_name FROM members WHERE member_id=%s', $ciddaeiga );
- if (!empty( $decgaggbba )) {
- return true;
- }
- return false;
- }
- function url_get($fbgdbjbfc, $ebaiefheid, $bbiafdjccg = 1) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $cihegfjbif = $bhabaiicdf( );
- $hijfajai( $cihegfjbif, CURLOPT_URL, $fbgdbjbfc );
- $hijfajai( $cihegfjbif, CURLOPT_POST, $bbiafdjccg );
- $hijfajai( $cihegfjbif, CURLOPT_POSTFIELDS, $ebaiefheid );
- $hijfajai( $cihegfjbif, CURLOPT_SSL_VERIFYPEER, FALSE );
- $hijfajai( $cihegfjbif, CURLOPT_RETURNTRANSFER, 1 );
- $bgdefebidg = $chaedehdbg( $cihegfjbif );
- $bgdiaefjdd( $cihegfjbif );
- return $bgdefebidg;
- }
- function referrals_enabled() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- global $settings;
- return ( ( ( $bcgahficac['deposit_referals'] || $bcgahficac['balance_referals'] ) || $bcgahficac['bonus_referals'] ) || $bcgahficac['earnings_referals'] );
- }
- function scheduled_pay() {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $cdhhbbadbd = 0;
- $hicedifch = 0;
- $dfgfegdcb = 0;
- x0d( );
- $djdfhajhce = query_array( 'SELECT * FROM payments WHERE status=\'Processing\';' );
- foreach ($djdfhajhce as $dhiiajaaah) {
- $dijeehdhci = 0;
- $bgeajibigf = $dhddgedaaf( $dhiiajaaah['schedule'] );
- if (( !empty( $dhiiajaaah['prorate'] ) && $dhiiajaaah['prorate'] != '0000-00-00 00:00:00' )) {
- $bidajcfjbg = $dhddgedaaf( $dhiiajaaah['prorate'] );
- } else {
- $bidajcfjbg = 0;
- }
- if (( 0 < $bidajcfjbg && 0 < $bgeajibigf - $bidajcfjbg )) {
- $dfgfegdcb = $didheajchj( $cfcbcjbfci( $bgeajibigf - $bidajcfjbg ) / 86400 );
- $cdhhbbadbd = $dhiiajaaah['amount'] / $dfgfegdcb;
- }
- $bfbjaddgbg = query_row( 'SELECT * FROM programs WHERE program_id=%s', $dhiiajaaah['program_id'] );
- $cgaeifbfjj = query_array( 'SELECT * FROM deposits WHERE status=\'enabled\' AND program_id=%s', $dhiiajaaah['program_id'] );
- foreach ($cgaeifbfjj as $cjdjcgijdj) {
- $dgiheaehdd = false;
- if (0 < $bfbjaddgbg['duration']) {
- $jcgbcjafa = $dhddgedaaf( '+' . $bfbjaddgbg['duration'] . ' day', $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) );
- if ($jcgbcjafa < $bgeajibigf) {
- $dgiheaehdd = true;
- }
- }
- if (( $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) < $bgeajibigf && !$dgiheaehdd )) {
- if (( 0 < $bidajcfjbg && $bidajcfjbg <= $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) )) {
- $cbfacidjgb = $didheajchj( $cfcbcjbfci( $bgeajibigf - $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) ) / 86400 );
- $hicedifch = $cdhhbbadbd * $cbfacidjgb;
- } else {
- $hicedifch = $dhiiajaaah['amount'];
- }
- if (0 < $hicedifch) {
- pay_earnings( $cjdjcgijdj, $bgeajibigf, $hicedifch, $dhiiajaaah['memo'], $dhiiajaaah['payment_type'], $bfbjaddgbg );
- if ($dhiiajaaah['payment_type'] == 'Amount') {
- $dijeehdhci += $hicedifch;
- continue;
- }
- $dijeehdhci += $hicedifch * $cjdjcgijdj['amount'] / 100;
- continue;
- }
- continue;
- }
- }
- query_update( 'payments', 'payment_id', $dhiiajaaah['payment_id'], array( 'status' => 'Paid', 'total_paid' => $bgjcjgaghd( $dijeehdhci, 2 ) ), false );
- }
- }
- function get_member_id($diechbfjeh) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $dfehfhdhb = query_value( 'SELECT member_id FROM members WHERE user_name =\'%s\';', $diechbfjeh );
- if (empty( $dfehfhdhb )) {
- return 0;
- }
- return $dfehfhdhb;
- }
- function serialize_obj($chhfaahdeb) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- return encrypt( $ibdjijefd( $chhfaahdeb ) );
- }
- function deserialize_obj($baghbijhjj) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- return $bffehajcgj( decrypt( $baghbijhjj ) );
- }
- function id_processor($cebhfcggbj) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $cffeagiii = '';
- $bjhjhgedcb = '';
- if (!empty( $cebhfcggbj['ATIP_TRANSACTION_ID'] )) {
- $cffeagiii = $cebhfcggbj['ATIP_TRANSACTION_ID'];
- $bjhjhgedcb = 4;
- } else {
- if (!empty( $cebhfcggbj['PAYMENT_BATCH_NUM'] )) {
- $cffeagiii = $cebhfcggbj['PAYMENT_BATCH_NUM'];
- if (!empty( $cebhfcggbj['PAYMENT_METAL_ID'] )) {
- $bjhjhgedcb = 1;
- } else {
- $bjhjhgedcb = 22;
- }
- } else {
- if (!empty( $cebhfcggbj['lr_transfer'] )) {
- $cffeagiii = $cebhfcggbj['lr_transfer'];
- $bjhjhgedcb = 3;
- } else {
- if (!empty( $cebhfcggbj['PAYMENT_REC_ID'] )) {
- $cffeagiii = $cebhfcggbj['PAYMENT_REC_ID'];
- $bjhjhgedcb = 2;
- } else {
- if (!empty( $cebhfcggbj['PMT_BATCH_NUM'] )) {
- $cffeagiii = $cebhfcggbj['PMT_BATCH_NUM'];
- $bjhjhgedcb = 7;
- } else {
- if (!empty( $cebhfcggbj['PAYMENT_BATCH'] )) {
- $cffeagiii = $cebhfcggbj['PAYMENT_BATCH'];
- $bjhjhgedcb = 21;
- } else {
- if (!empty( $cebhfcggbj['transaction_id'] )) {
- $cffeagiii = $cebhfcggbj['transaction_id'];
- $bjhjhgedcb = 23;
- } else {
- if (!empty( $cebhfcggbj['ap_referencenumber'] )) {
- $cffeagiii = $cebhfcggbj['ap_referencenumber'];
- $bjhjhgedcb = 6;
- } else {
- $bjhjhgedcb = 'ERROR';
- }
- }
- }
- }
- }
- }
- }
- }
- return array( $bjhjhgedcb, $cffeagiii );
- }
- $x0b = 'abs';
- $x0c = 'array_map';
- $x0d = 'array_merge';
- $x0e = 'base64_encode';
- $x0f = 'base64_decode';
- $x10 = 'chr';
- $x11 = 'count';
- $x12 = 'curl_init';
- $x13 = 'curl_setopt';
- $x14 = 'curl_exec';
- $x15 = 'curl_close';
- $x16 = 'date';
- $x17 = 'eregi';
- $x18 = 'explode';
- $x19 = 'escapeshellcmd';
- $x1a = 'fclose';
- $x1b = 'file_get_contents';
- $x1c = 'feof';
- $x1d = 'fgets';
- $x1e = 'fopen';
- $x1f = 'get_magic_quotes_gpc';
- $x20 = 'get_magic_quotes_runtime';
- $x21 = 'fwrite';
- $x22 = 'function_exists';
- $x23 = 'header';
- $x24 = 'implode';
- $x25 = 'in_array';
- $x26 = 'is_array';
- $x27 = 'is_dir';
- $x28 = 'is_numeric';
- $x29 = 'mail';
- $x2a = 'md5';
- $x2b = 'min';
- $x2c = 'mysql_connect';
- $x2d = 'mysql_error';
- $x2e = 'mysql_fetch_assoc';
- $x2f = 'mysql_fetch_array';
- $x30 = 'mt_rand';
- $x31 = 'mysql_affected_rows';
- $x32 = 'mysql_real_escape_string';
- $x33 = 'mysql_query';
- $x34 = 'mysql_num_rows';
- $x35 = 'mysql_insert_id';
- $x36 = 'mysql_field_name';
- $x37 = 'mysql_fetch_row';
- $x38 = 'mysql_select_db';
- $x39 = 'number_format';
- $x3a = 'pclose';
- $x3b = 'popen';
- $x3c = 'preg_replace';
- $x3d = 'preg_match_all';
- $x3e = 'preg_match';
- $x3f = 'rawurlencode';
- $x40 = 'rawurldecode';
- $x41 = 'round';
- $x42 = 'serialize';
- $x43 = 'set_magic_quotes_runtime';
- $x44 = 'setcookie';
- $x45 = 'sha1';
- $x46 = 'str_replace';
- $x47 = 'stripslashes';
- $x48 = 'strlen';
- $x49 = 'stristr';
- $x4a = 'strtotime';
- $x4b = 'strtoupper';
- $x4c = 'substr';
- $x4d = 'strpos';
- $x4e = 'strstr';
- $x4f = 'strtolower';
- $x50 = 'time';
- $x51 = 'trim';
- $x52 = 'usleep';
- $x53 = 'unserialize';
- $x54 = 'vsprintf';
- if ($x1f( )) {
- function stripslashes_deep($eafcfgbgeg) {
- global $x0b;
- global $x0c;
- global $x0d;
- global $x0e;
- global $x0f;
- global $x10;
- global $x11;
- global $x12;
- global $x13;
- global $x14;
- global $x15;
- global $x16;
- global $x17;
- global $x18;
- global $x19;
- global $x1a;
- global $x1b;
- global $x1c;
- global $x1d;
- global $x1e;
- global $x1f;
- global $x20;
- global $x21;
- global $x22;
- global $x23;
- global $x24;
- global $x25;
- global $x26;
- global $x27;
- global $x28;
- global $x29;
- global $x2a;
- global $x2b;
- global $x2c;
- global $x2d;
- global $x2e;
- global $x2f;
- global $x30;
- global $x31;
- global $x32;
- global $x33;
- global $x34;
- global $x35;
- global $x36;
- global $x37;
- global $x38;
- global $x39;
- global $x3a;
- global $x3b;
- global $x3c;
- global $x3d;
- global $x3e;
- global $x3f;
- global $x40;
- global $x41;
- global $x42;
- global $x43;
- global $x44;
- global $x45;
- global $x46;
- global $x47;
- global $x48;
- global $x49;
- global $x4a;
- global $x4b;
- global $x4c;
- global $x4d;
- global $x4e;
- global $x4f;
- global $x50;
- global $x51;
- global $x52;
- global $x53;
- global $x54;
- $eafcfgbgeg = ($dcjbfhhefa( $eafcfgbgeg ) ? $djhfifjcge( 'stripslashes_deep', $eafcfgbgeg ) : $ebfdgjifae( $eafcfgbgeg ));
- return $eafcfgbgeg;
- }
- $_POST = $x0c( 'stripslashes_deep', $_POST );
- $_GET = $x0c( 'stripslashes_deep', $_GET );
- $_COOKIE = $x0c( 'stripslashes_deep', $_COOKIE );
- $_REQUEST = $x0c( 'stripslashes_deep', $_REQUEST );
- }
- if ($x20( )) {
- $x43( 0 );
- }
- $fdfd = 'store.cache needs to be writtable by the script.';
- $r2d2 = 'JhkjhKJH783Hg';
- define( 'EMAIL_NOTFOUND', 1 );
- define( 'USERNAME_NOTFOUND', 2 );
- define( 'PASSWORD_SENT', 3 );
- define( 'USERNAME_SENT', 4 );
- define( 'DUPLICATE_EMAIL', 1 );
- define( 'DUPLICATE_USERNAME', 2 );
- define( 'LOGIN_OK', 1 );
- define( 'LOGIN_ACTIVATE', 2 );
- define( 'LOGIN_SUSPENDED', 3 );
- define( 'LOGIN_WRONGCODE', 4 );
- define( 'LOGIN_WRONGUSERNAME', 5 );
- define( 'LOGIN_WRONGPASSWORD', 6 );
- define( 'LOGIN_CHECKIP', 7 );
- define( 'SOURCE_BALANCE', 1 );
- define( 'SOURCE_EXTERNAL', 2 );
- define( 'SOURCE_BONUS', 3 );
- define( 'SOURCE_MANUAL', 4 );
- define( 'NOT_ENOUGH_FUNDS', 1 );
- require_once( 'settings.php' );
- require_once( 'rocka.php' );
- require_once( 'vmoney.class.php' );
- require_once( 'LibertyReserve.class.php' );
- require_once( 'Egold.class.php' );
- require_once( 'Pecunix.class.php' );
- require_once( 'Ebullion.class.php' );
- require_once( 'SolidTrustPay.class.php' );
- require_once( 'processors/AlterGold.php' );
- require_once( 'processors/C-Gold.php' );
- require_once( 'processors/PerfectMoney.php' );
- require_once( 'libs/Smarty.class.php' );
- require_once( 'includes/session.class.php' );
- if (!isset( $smarty )) {
- $smarty = new Smarty( );
- }
- if (!isset( $bf )) {
- $bf = new Crypt_Blowfish( );
- }
- if (( !empty( $_GET['lang'] ) || !empty( $_COOKIE['lang'] ) )) {
- if ($_GET['lang'] == 'default') {
- require_once( 'templates/lang.inc.php' );
- if (!empty( $_COOKIE['lang'] )) {
- $x44( 'lang', '', $x50( ) - 3600 );
- }
- } else {
- if (!empty( $_GET['lang'] )) {
- if ($x27( 'templates/' . $_GET['lang'] )) {
- $slang = $_GET['lang'];
- $x44( 'lang', $_GET['lang'] );
- }
- } else {
- $slang = $_COOKIE['lang'];
- }
- if ($slang) {
- $smarty->template_dir = ( '' . 't' ) . 'emplates/' . $slang;
- $smarty->compile_dir = ( ( '' . 't' ) . 'e' ) . 'mplates_c/' . $slang;
- require_once( ( ( ( ( ( ( ( ( ( ( ( ( ( '' . 't' ) . 'e' ) . 'm' ) . 'p' ) . 'l' ) . 'a' ) . 't' ) . 'e' ) . 's' ) . '/' ) . $slang . '/' ) . 'l' ) . 'a' ) . 'ng.inc.php' );
- }
- }
- } else {
- require_once( 'templates/lang.inc.php' );
- }
- if (!isset( $mysql_database )) {
- $x23( 'Location: install.php' );
- exit( );
- }
- $settings = read_settings( );
- $session = new Session( $settings['session_length'] );
- if (( ( $settings['use_https'] == true && ( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) ) && empty( $secure ) )) {
- $url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
- if ($_SERVER['QUERY_STRING']) {
- $url .= '?' . $_SERVER['QUERY_STRING'];
- }
- $x23( 'refresh: 0; url=' . $url );
- exit( );
- }
- $err = array( );
- if (( !empty( $_REQUEST['ref'] ) && $x28( $_REQUEST['ref'] ) )) {
- set_refcookie( $_REQUEST['ref'] );
- } else {
- set_refcookie( );
- }
- $glob = $session->get( 'global' );
- if (!empty( $glob )) {
- $smarty->assign( 'global', $glob );
- }
- $smarty->assign( 'settings', $settings );
- $smarty->assign( 'url', get_url( ) );
- $dbh;
- x0d( );
- check_payouts( );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement