Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function _GETSECURITY_BUTTONS($what) {
- global $siteurl;
- global $file;
- global $handle;
- global $x;
- $siteurl = _ADMIN_SHOW(xt_config_page, site_url);
- if (file_exists("../SECURITY_ICONS")) {
- $handle = opendir("../SECURITY_ICONS");
- do {
- if (false !== ($file = readdir($handle))) {
- } else if ($file != "." && $file != "..") {
- $x = strtolower(substr($file, 0 - 4));
- if ($x && $x == ".jpg" || $x == ".gif" || $x == ".png") {
- echo "<span><input name=\"security_icons\" type=\"radio\" value=\"{$file}\" id=\"radio-input\" style=\"position: relative;\nbottom\t: 35px;\"CHECKED>\t<img src=\"{$siteurl}/SECURITY_ICONS/{$file}\"></span><br>";
- }
- }
- }
- while (1);
- }
- }
- function _GETFLAGS($what) {
- global $siteurl;
- global $file;
- global $handle;
- global $x;
- $siteurl = _ADMIN_SHOW(xt_config_page, site_url);
- if (file_exists("../../FLAGS/")) {
- $handle = opendir("../../FLAGS/");
- do {
- if (false !== ($file = readdir($handle))) {
- } else if ($file != "." && $file != "..") {
- $x = strtolower(substr($file, 0 - 4));
- if ($x && $x == ".jpg" || $x == ".gif" || $x == ".png") {
- echo "<span><input name=\"button\" type=\"radio\" value=\"{$file}\" id=\"radio-input\" CHECKED>\t<img src=\"{$siteurl}/FLAGS/{$file}\"></span><br>";
- }
- }
- }
- while (1);
- }
- }
- function _GETBUTTONS($what) {
- global $siteurl;
- global $file;
- global $handle;
- global $x;
- $siteurl = _ADMIN_SHOW(xt_config_page, site_url);
- if (file_exists("../CHECKOUT_BUTTONS/{$what}")) {
- $handle = opendir("../CHECKOUT_BUTTONS/{$what}");
- do {
- if (false !== ($file = readdir($handle))) {
- } else if ($file != "." && $file != "..") {
- $x = strtolower(substr($file, 0 - 4));
- if ($x && $x == ".jpg" || $x == ".gif" || $x == ".png") {
- echo "<span><input name=\"button\" type=\"radio\" value=\"{$file}\" id=\"radio-input\" CHECKED>\t<img src=\"{$siteurl}/CHECKOUT_BUTTONS/{$what}/{$file}\"></span><br>";
- }
- }
- }
- while (1);
- }
- }
- function _ADMIN_SHOW($table, $what) {
- $show = mysql_fetch_object(mysql_query("SELECT * FROM {$table}"));
- return $show->$what;
- }
- function DB_OBJECT($dbname, $table, $what) {
- $dbname = mysql_fetch_object(mysql_query("SELECT * FROM {$table}"));
- return $dbname;
- }
- function _COUNTIT($table, $what) {
- global $show;
- $show = mysql_fetch_row(mysql_query("SELECT COUNT({$what}) FROM {$table}"));
- $show = $show[0];
- return $show;
- }
- function _MONEY_FORMAT($Var_0, $color) {
- global $_TXT;
- global $currency;
- global $user;
- global $summ;
- if ($color) {
- if ($number <= 0) {
- $money = number_format($number, 2, ".", ",");
- $money = "<span class=money_negative>{$money}</span>";
- } else if (0 < $number) {
- $money = number_format($number, 2, ".", ",");
- $money = "<span class=money_positive>+{$money}</span>";
- }
- }
- if (!$color) {
- $money = number_format($number, 2, ".", ",");
- }
- $money = str_replace(",", "", $money);
- return $money;
- }
- function _USERTATS($id) {
- global $home;
- global $cc;
- global $bank;
- global $_TXT;
- global $count;
- if (!_getEmail($id)) {
- return "ur";
- }
- $bank = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM xt_banks WHERE user='{$id}' AND status='v'"));
- $bank = $bank[0];
- $cc = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM xt_cc WHERE user='{$id}' AND status='v'"));
- $cc = $cc[0];
- $count = $bank + $cc;
- if (0 < $count) {
- return "v";
- }
- return "u";
- }
- function _addyShow($user, $life, $input, $what) {
- global $_TXT;
- global $addy0;
- global $addy1;
- global $addy2;
- global $addy3;
- global $addy4;
- global $status;
- global $and2;
- global $shipto;
- global $data;
- if ($life == "count") {
- $addy1 = mysql_num_rows(mysql_query("SELECT * FROM xt_address WHERE user='{$user}' AND status='v'"));
- $addy2 = mysql_num_rows(mysql_query("SELECT * FROM xt_address WHERE user='{$user}' AND status='u'"));
- $addy3 = mysql_num_rows(mysql_query("SELECT * FROM xt_address WHERE user='{$user}' AND status='d'"));
- $addy4 = mysql_num_rows(mysql_query("SELECT * FROM xt_address WHERE user='{$user}' AND life='p'"));
- if ($what == "0") {
- $addy0 = $addy1 + $addy2 + $addy3;
- return $addy0;
- }
- if ($what == "1") {
- return $addy1;
- }
- if ($what == "2") {
- return $addy2;
- }
- if ($what == "3") {
- return $addy3;
- }
- if ($what == "4") {
- return $addy4;
- }
- }
- if ($life == "list") {
- if (!$what) {
- $and2 = "";
- } else {
- $and2 = "AND status='v'";
- }
- if ($input == "dropbox") {
- echo "<select id='select-input' name='addy'>";
- }
- $addy1 = mysql_query("SELECT * FROM xt_address WHERE user='{$user}'{$and2} ORDER BY status,life ASC");
- while ($addy = mysql_fetch_object($addy1)) {
- $shipto = "{$addy->address1} {$addy->address2}, {$addy->city} {$addy->state} {$addy->zip} {$addy->country}";
- $shipto = ucfirst(strtolower($shipto));
- if ($input == "radio") {
- if ($addy->status == "v" && $addy->life == "p") {
- $status = "<P><input type='radio' name='addy' value='{$addy->id}' id='addy' CHECKED> {$shipto}</p></TD><TD><P>{$_TXT['global_verified']} / {$_TXT['global_primary']}</p>";
- } else if ($addy->status == "v") {
- $status = "<P><input type='radio' name='addy' value='{$addy->id}' id='addy' CHECKED> {$shipto}</p></TD><TD><P>{$_TXT['global_verified']}</p>";
- } else if ($addy->status == "u") {
- $status = "<P><input type='radio' name='addy' value='{$addy->id}' id='addy' CHECKED> {$shipto}</p></TD><TD><P>{$_TXT['global_unverified']}</p>";
- } else if ($addy->status == "d") {
- $status = "<P><input type='radio' name='addy' value='{$addy->id}' id='addy' CHECKED> {$shipto}</p></TD><TD><P>{$_TXT['global_disabled']}</p>";
- }
- echo "<TR><TD>{$status}</TD></TR><br>";
- }
- if ($input == "table") {
- if ($addy->status == "v" && $addy->life == "p") {
- $status = "{$_TXT['global_verified']} / {$_TXT['global_primary']}";
- } else if ($addy->status == "v") {
- } else if ($addy->status == "u") {
- $status = $_TXT['global_unverified'];
- } else if ($addy->status == "d") {
- $status = $_TXT['global_disabled'];
- }
- if ($num % 2 == 0) {
- $color = "#FCFCFC";
- } else {
- $color = "#ffffff";
- }
- echo " <TR>\n <TD WIDTH=\"50%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P>\n ";
- echo $shipto;
- echo "</TD>\n <TD WIDTH=\"23%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P>\n ";
- echo $status;
- echo "</TD>\n <TD WIDTH=\"27%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P ALIGN=RIGHT>\n ";
- echo $doit;
- echo " ";
- echo $disable;
- echo "</TD>\n\t</TR>\n";
- }
- if ($input == "dropbox") {
- if (35 < strlen($shipto)) {
- $shipto = substr($shipto, 0, 35) . "...";
- }
- if ($addy->status == "v" && $addy->life == "p") {
- $status = "<option value='{$addy->id}' SELECTED>{$shipto} ({$_TXT['global_verified']} / {$_TXT['global_primary']})</option>";
- } else if ($addy->status == "v") {
- $status = "<option value='{$addy->id}'>{$shipto} ({$_TXT['global_verified']}) </option>";
- } else if ($addy->status == "u") {
- $status = "<option value='{$addy->id}'>{$shipto} ({$_TXT['global_unverified']}) </option>";
- }
- echo $status;
- }
- $num = $num + 1;
- }
- if ($input == "dropbox") {
- echo "</select>";
- }
- }
- }
- function _ccShow($user, $life, $input, $what) {
- global $_TXT;
- global $cc;
- global $cc0;
- global $cc1;
- global $cc2;
- global $cc3;
- global $cc4;
- global $cards;
- global $status;
- global $cards1;
- global $and;
- global $ccString;
- global $data;
- if ($life == "count") {
- $cc0 = mysql_num_rows(mysql_query("SELECT * FROM xt_cc WHERE user='{$user}' AND life='p'"));
- $cc1 = mysql_num_rows(mysql_query("SELECT * FROM xt_cc WHERE user='{$user}' AND status='v'"));
- $cc2 = mysql_num_rows(mysql_query("SELECT * FROM xt_cc WHERE user='{$user}' AND status='u'"));
- $cc3 = mysql_num_rows(mysql_query("SELECT * FROM xt_cc WHERE user='{$user}' AND (status='d' OR status='x')"));
- if ($what == "0") {
- $cc = $cc1 + $cc2 + $cc3;
- return $cc;
- }
- if ($what == "1") {
- return $cc1;
- }
- if ($what == "2") {
- return $cc2;
- }
- if ($what == "3") {
- return $cc3;
- }
- if ($what == "4") {
- return $cc0;
- }
- }
- if (!$what) {
- $and = "";
- } else {
- $and = "AND status='v'";
- }
- if ($life == "list") {
- if ($input == "dropbox") {
- echo "<select id='select-input' name='cc2'>";
- }
- $cards1 = mysql_query("SELECT * FROM xt_cc WHERE user='{$user}'{$and} ORDER BY status,life ASC");
- while ($cards = mysql_fetch_object($cards1)) {
- $ccString = trim(_ccDecrypt($cards->ccNum));
- $Var_2496 = substr($ccString, 0, 1) . XXXX . substr($ccString, 0 - 2, 2);
- if ($input == "radio") {
- if ($cards->status == "v" && $cards->life == "p") {
- $status = "<P><input type='radio' name='cc' value='{$cards->id}' id='cc' CHECKED> {$cards->ccType} {$ccString}</p></TD><TD><P>Verified / Primary</p>";
- } else if ($cards->status == "v") {
- $status = "<P><input type='radio' name='cc' value='{$cards->id}' id='cc' CHECKED> {$cards->ccType} {$ccString}</p></TD><TD><P>Verified</p>";
- } else if ($cards->status == "u") {
- $status = "<P><input type='radio' name='cc' value='{$cards->id}' id='cc' CHECKED> {$cards->ccType} {$ccString}</p></TD><TD><P>Unverified</p>";
- } else if ($cards->status == "d") {
- $status = "<P><input type='radio' name='cc' value='{$cards->id}' id='cc' CHECKED> {$cards->ccType} {$ccString}</p></TD><TD><P>Disabled</p>";
- } else if ($cards->status == "x") {
- $status = "<P><input type='radio' name='cc' value='{$cards->id}' id='cc' CHECKED> {$cards->ccType} {$ccString}</p></TD><TD><P>Expired</p>";
- }
- echo "<TR><TD>{$status}</TD> </TR><br>";
- }
- if ($input == "table") {
- if ($cards->status == "v" && $cards->life == "p") {
- $status = "Verified / Primary";
- } else if ($cards->status == "v") {
- $status = "Verified";
- } else if ($cards->status == "u") {
- $status = "Unverified";
- } else if ($cards->status == "d") {
- $status = "Disabled";
- } else if ($cards->status == "x") {
- $status = "Expired";
- }
- if ($cards->status == "u") {
- $doit = "<a href=\"show.php?inc=creditcards-verify-main&prcs={$data->user_unique}~{$data->id}&y={$cards->id}\">{$_TXT['xcardsmain_ver']}</a> |";
- } else {
- $doit = "";
- }
- if ($cards->status == "v" && $cards->life != "p") {
- $makeprime = "<a href=\"show.php?inc=creditcards-primary-main&prcs={$data->user_unique}~{$data->id}&y={$cards->id}\">{$_TXT['xcardsmain_pri']}</a> |";
- } else {
- $makeprime = "";
- }
- if ($cards->cards != "d" || $banks->status != "x") {
- $disable = "<a href=\"show.php?inc=creditcards-ed-main&prcs={$data->user_unique}~{$data->id}&y={$cards->id}\">{$_TXT['xcardsmain_ed']}</a>";
- } else {
- $disable = "";
- }
- if ($cards->cards == "d" || $banks->status == "x") {
- $enable = "<a href=\"show.php?inc=creditcards-ed-main&prcs={$data->user_unique}~{$data->id}&y={$cards->id}\">Enable</a>";
- } else {
- $enable = "";
- }
- if ($num % 2 == 0) {
- $color = "#FCFCFC";
- } else {
- $color = "#ffffff";
- }
- echo "\n <TR>\n <TD WIDTH=\"50%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P>\n <img src=\"img/";
- echo $cards->ccType;
- echo ".gif\"> ";
- echo $cards->ccType;
- echo " ";
- echo $ccString;
- echo "</TD>\n <TD WIDTH=\"23%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P>\n ";
- echo $status;
- echo "</TD>\n <TD WIDTH=\"27%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P ALIGN=RIGHT>\n <a href=\"show.php?inc=creditcards-update-main&prcs=";
- echo $data->user_unique;
- echo "~";
- echo $data->id;
- echo "&y=";
- echo $cards->id;
- echo "\">";
- echo $_TXT['xcardsmain_ud'];
- echo "</a> | ";
- echo "{$doit} {$makeprime} {$disable}";
- echo "</TD>\n\t</TR>\n\n";
- }
- if ($input == "dropbox") {
- if ($cards->status == "v" && $cards->life == "p") {
- $status = "<option value='{$cards->id}' SELECTED>{$cards->ccType} {$ccString} (Verified / Primary)</option>";
- } else if ($cards->status == "v") {
- $status = "<option value='{$cards->id}'>{$cards->ccType} {$ccString} (Verified) </option>";
- } else if ($cards->status == "u") {
- $status = "<option value='{$cards->id}'>{$cards->ccType} {$ccString} (Unverified) </option>";
- } else if ($cards->status == "d") {
- $status = "<option value='{$cards->id}'>{$cards->ccType} {$ccString} (Disabled) </option>";
- } else if ($cards->status == "x") {
- $status = "<option value='{$cards->id}'>{$cards->ccType} {$ccString} (Expired) </option>";
- }
- echo $status;
- }
- $num = $num + 1;
- }
- if ($input == "dropbox") {
- }
- }
- }
- function _bankShow($user, $life, $input, $what) {
- global $_TXT;
- global $cc;
- global $cc0;
- global $cc1;
- global $cc2;
- global $cc3;
- global $banks;
- global $status;
- global $banks1;
- global $and;
- global $bankString;
- global $doit;
- global $makeprime;
- global $disable;
- if ($life == "count") {
- $cc0 = mysql_num_rows(mysql_query($Tmp_35 . "SELECT * FROM xt_banks WHERE user='{$user}' AND life='p'"));
- $cc1 = mysql_num_rows(mysql_query("SELECT * FROM xt_banks WHERE user='{$user}' AND status='v'"));
- $cc2 = mysql_num_rows(mysql_query("SELECT * FROM xt_banks WHERE user='{$user}' AND status='u'"));
- $cc3 = mysql_num_rows(mysql_query("SELECT * FROM xt_banks WHERE user='{$user}' AND (status='d' OR status='x')"));
- if ($what == "0") {
- $cc = $cc1 + $cc2 + $cc3;
- return $cc;
- }
- if ($what == "1") {
- return $cc1;
- }
- return $cc2;
- }
- if ($what == "3") {
- return $cc3;
- }
- if ($what == "4") {
- return $cc0;
- }
- }
- if (!$what) {
- $and = "";
- } else {
- $and = "AND status='v'";
- }
- if ($life == "list") {
- if ($input == "dropbox") {
- echo "<select id='select-input' name='bank2'>";
- }
- $banks1 = mysql_query("SELECT * FROM xt_banks WHERE user='{$user}' ORDER BY status,life ASC");
- while ($banks = mysql_fetch_object($banks1)) {
- $bankString = trim(_bankDecrypt($banks->acct));
- $bankString = substr($bankString, 0, 1) . XX . substr($bankString, 0 - 2, 2);
- if ($input == "radio") {
- if ($banks->bankType == "s") {
- $banks->bankType = "Savings";
- } else if ($banks->bankType == "c") {
- $banks->bankType = "Checking";
- }
- if ($banks->status == "v" && $banks->life == "p") {
- } else if ($banks->status == "v") {
- $status = "<P><input type='radio' name='bank' value='{$banks->id}' id='bank'> {$banks->bank_name} ({$banks->bankType}) {$bankString}</p></TD><TD><P>Verified</p>";
- } else if ($banks->status == "u") {
- $status = "<P><input type='radio' name='bank' value='{$banks->id}' id='bank'> {$banks->bank_name} ({$banks->bankType}) {$bankString}</p></TD><TD><P>Unverified</p>";
- } else if ($banks->status == "d") {
- $status = "<P><input type='radio' name='bank' value='{$banks->id}' id='bank'> {$banks->bank_name} ({$banks->bankType}) {$bankString}</p></TD><TD><P>Disabled</p>";
- } else if ($banks->status == "x") {
- $status = "<P><input type='radio' name='bank' value='{$banks->id}' id='bank'> {$banks->bank_name} ({$banks->bankType}) {$bankString}</p></TD><TD><P>Expired</p>";
- }
- echo "<TR><TD>{$status}</TD> </TR><br>";
- }
- if ($input == "table") {
- $banks->bank_name = strtoupper($banks->bank_name);
- if ($banks->bankType == "s") {
- $banks->bankType = "Savings";
- } else if ($banks->bankType == "c") {
- $banks->bankType = "Checking";
- }
- if ($banks->status == "v" && $banks->life == "p") {
- $status = "Verified / Primary";
- } else if ($banks->status == "v") {
- $status = "Verified";
- } else if ($banks->status == "u") {
- $status = "Unverified";
- } else if ($banks->status == "d") {
- $status = "Disabled";
- } else {
- $status = "Expired";
- }
- if ($banks->status == "u") {
- $doit = "<a href=\"show.php?inc=banksacc-verify-main&prcs={$data->user_unique}~{$data->id}&y={$banks->id}\">{$_TXT['xbankman_verify']}</a> |";
- } else {
- $doit = "";
- }
- if ($banks->status == "v" && $banks->life != "p") {
- $makeprime = "<a href=\"show.php?inc=banksacc-primary-main&prcs={$data->user_unique}~{$data->id}&y={$banks->id}\">{$_TXT['xbankman_prime']}</a> |";
- } else {
- $makeprime = "";
- }
- if ($banks->status != "d" || $banks->status != "x") {
- $disable = "<a href=\"show.php?inc=banksacc-ed-main&prcs={$data->user_unique}~{$data->id}&y={$banks->id}\">{$_TXT['xbankman_dsenable']}</a>";
- } else {
- $disable = "";
- }
- if ($num % 2 == 0) {
- $color = "#FCFCFC";
- } else {
- $color = "#ffffff";
- }
- echo "\n <TR>\n <TD WIDTH=\"50%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P>\n ";
- echo $banks->bank_name;
- echo " (";
- echo $banks->bankType;
- echo ") ";
- echo $bankString;
- echo "</TD>\n <TD WIDTH=\"23%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P>\n ";
- echo $status;
- echo "</TD>\n <TD WIDTH=\"27%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P ALIGN=RIGHT>\n ";
- echo "{$doit} {$makeprime} {$disable}";
- echo "</TD>\n\t</TR>\n\n";
- }
- if ($input == "dropbox") {
- if ($banks->bankType == "s") {
- $banks->bankType = "Savings";
- } else if ($banks->bankType == "c") {
- $banks->bankType = "Checking";
- }
- if ($banks->status == "v" && $banks->life == "p") {
- $status = "<option value='{$banks->id}' SELECTED>{$banks->bank_name} ({$banks->bankType}) {$bankString} (Verified / Primary)</option>";
- } else if ($banks->status == "v") {
- $status = "<option value='{$banks->id}'>{$banks->bank_name} ({$banks->bankType}) {$bankString} (Verified) </option>";
- } else if ($banks->status == "u") {
- $status = "<option value='{$banks->id}'>{$banks->bank_name} ({$banks->bankType}) {$bankString} (Unverified) </option>";
- } else if ($banks->status == "d") {
- $status = "<option value='{$banks->id}'>{$banks->bank_name} ({$banks->bankType}) {$bankString} (Disabled) </option>";
- } else if ($banks->status == "x") {
- $status = "<option value=''>{$banks->bank_name} ({$banks->bankType}) {$bankString} (Expired) </option>";
- }
- echo $status;
- }
- $num = $num + 1;
- }
- if ($input == "dropbox") {
- echo "</select>";
- }
- }
- function _phoneShow($user, $life, $input, $what) {
- global $_TXT;
- global $cc;
- global $cc0;
- global $cc1;
- global $cc2;
- global $cc3;
- global $cards;
- global $status;
- global $cards1;
- global $and;
- global $ccString;
- global $data;
- global $verifyit;
- if ($life == "count") {
- $cc0 = mysql_num_rows(mysql_query("SELECT * FROM xt_phones WHERE user='{$user}' AND life='p'"));
- $cc1 = mysql_num_rows(mysql_query("SELECT * FROM xt_phones WHERE user='{$user}' AND status='v'"));
- $cc2 = mysql_num_rows(mysql_query("SELECT * FROM xt_phones WHERE user='{$user}' AND status='u'"));
- $cc3 = mysql_num_rows(mysql_query("SELECT * FROM xt_phones WHERE user='{$user}' AND (status='d' OR status='x')"));
- if ($what == "0") {
- $cc = $cc1 + $cc2 + $cc3;
- return $cc;
- }
- if ($what == "1") {
- return $cc1;
- }
- if ($what == "2") {
- return $cc2;
- }
- if ($what == "3") {
- return $cc3;
- }
- if ($what == "4") {
- return $cc0;
- }
- }
- if (!$what) {
- $and = "";
- } else {
- $and = "AND status='v'";
- }
- if ($life == "list") {
- if ($input == "dropbox") {
- echo "<select id='select-input' name='phone'>";
- }
- $cards1 = mysql_query("SELECT * FROM xt_phones WHERE user='{$user}'{$and} ORDER BY status ASC");
- while ($cards = mysql_fetch_object($cards1)) {
- if ($cards->ptype == "m") {
- $cards->ptype = "Mobile";
- } else if ($cards->ptype == "h") {
- $cards->ptype = "Home";
- } else if ($cards->ptype == "f") {
- $cards->ptype = "Fax";
- } else if ($cards->ptype == "b") {
- $cards->ptype = "Business";
- }
- if ($input == "table") {
- if ($cards->status == "v" && $cards->life == "p") {
- $status = "Verified / Primary";
- } else if ($cards->status == "v") {
- $status = "Verified";
- } else if ($cards->status == "u") {
- $status = "Unverified";
- $verifyit = "<a href=\"show.php?inc=phones-verify-main&prcs={$data->user_unique}~{$data->id}&y={$cards->pnumber}\">Verify</a>";
- } else if ($cards->status == "d") {
- $status = "Disabled";
- } else if ($cards->status == "x") {
- $status = "Expired";
- }
- $cards->pnumber = substr($cards->pnumber, strlen($cards->ccode));
- if ($num % 2 == 0) {
- $color = "#FCFCFC";
- } else {
- $color = "#ffffff";
- }
- echo "\n <TR>\n <TD WIDTH=\"50%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P>\n ";
- echo "+{$cards->ccode} {$cards->pnumber}";
- echo "</TD>\n <TD WIDTH=\"23%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P>\n ";
- echo $status;
- echo "</TD>\n <TD WIDTH=\"27%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P ALIGN=RIGHT>\n ";
- echo "{$verifyit}";
- echo "</TD>\n\t</TR>\n\n";
- }
- if ($input == "radio") {
- if ($cards->status == "v" && $cards->life == "p") {
- $status = "<P><input type='radio' name='phone' value='{$cards->id}' id='phone' CHECKED> +({$cards->ccode}) {$cards->pnumber} ({$cards->ptype})</p></TD><TD><P>Verified / Primary</p>";
- } else if ($cards->status == "v") {
- $status = "<P><input type='radio' name='phone' value='{$cards->id}' id='phone' CHECKED> +({$cards->ccode}) {$cards->pnumber} ({$cards->ptype})</p></TD><TD><P>Verified</p>";
- } else if ($cards->status == "u") {
- $status = "<P><input type='radio' name='phone' value='{$cards->id}' id='phone' CHECKED> +({$cards->ccode}) {$cards->pnumber} ({$cards->ptype})</p></TD><TD><P>Unverified</p>";
- } else if ($cards->status == "d") {
- $status = "<P><input type='radio' name='phone' value='{$cards->id}' id='phone' CHECKED> +({$cards->ccode}) {$cards->pnumber} ({$cards->ptype})</p></TD><TD><P>Disabled</p>";
- } else if ($cards->status == "x") {
- $status = "<P><input type='radio' name='phone' value='{$cards->id}' id='phone' CHECKED> +({$cards->ccode}) {$cards->pnumber} ({$cards->ptype})</p></TD><TD><P>Expired</p>";
- }
- echo "<TR><TD>{$status}</TD> </TR><br>";
- }
- if ($input == "dropbox") {
- if ($cards->status == "v" && $cards->life == "p") {
- $status = "<option value='{$cards->id}' SELECTED>+({$cards->ccode}) {$cards->pnumber} ({$cards->ptype}) (Verified / Primary)</option>";
- } else if ($cards->status == "v") {
- $status = "<option value='{$cards->id}' SELECTED>+({$cards->ccode}) {$cards->pnumber} () (Verified) </option>";
- } else if ($cards->status == "u") {
- $status = "<option value='{$cards->id}' SELECTED>+({$cards->ccode}) {$cards->pnumber} ({$cards->ptype}) (Unverified) </option>";
- } else if ($cards->status == "d") {
- $status = "<option value='{$cards->id}' SELECTED>+({$cards->ccode}) {$cards->pnumber} ({$cards->ptype}) (Disabled) </option>";
- } else if ($cards->status == "x") {
- $status = "<option value='{$cards->id}' SELECTED>+({$cards->ccode}) {$cards->pnumber} ({$cards->ptype}) (Expired) </option>";
- }
- echo $status;
- }
- $num = $num + 1;
- }
- if ($input == "dropbox") {
- echo "</select>";
- }
- }
- }
- function _getEmail($id, $link) {
- global $_TXT;
- $user = mysql_fetch_object(mysql_query("SELECT * FROM xt_members WHERE id='{$id}'"));
- if ($link) {
- $user->email = "<a href=\"?cmd=xpr&i={$id}\">{$user->email}</a>";
- } else {
- $user->email = $user->email;
- }
- return $user->email;
- }
- function _ERROR($msg, $type) {
- global $_epost;
- global $_TXT;
- global $_errorcode;
- if (!$type) {
- exit("<div id='failed' class='failed' onclick=\"$('update_results').hide()\">\n\t<img src='img/spacer.gif' onload=\"$('update_results').show()\">\t{$msg} \n\t\t</div>");
- return TRUE;
- }
- if ($type == "3") {
- echo "<div id='failed' class='failed' onclick=\"$('update_results').hide()\">\n\t<img src='img/spacer.gif' onload=\"$('update_results').show()\">\n\t»\t{$msg}\n\t\t</div>";
- $_epost = 1;
- } else if ($type == "1") {
- echo "<div class='failed'>\n\t\t{$msg} \n\t\t</div>";
- $_epost = 1;
- } else if ($type == "2") {
- echo "{$msg}";
- } else if ($type == "4") {
- exit("status=0&error={$_REQUEST['errorcode']}&reason={$msg}");
- return TRUE;
- } else {
- }
- }
- function _SUCCESS($msg) {
- global $_TXT;
- exit("<div class='success' onclick=\"$('update_results').hide()\">\n\t<img src='img/spacer.gif' onload=\"$('update_results').show()\">\n\t\t{$msg}\n\t\t</div>");
- return TRUE;
- }
- function _CHECKPHONES($p, $debug) {
- global $data;
- global $_TXT;
- global $tr_status;
- global $qr1;
- global $qr2;
- global $pending;
- global $holds;
- global $update;
- global $delete;
- global $debug;
- global $reqs;
- global $fee;
- global $tr_flat;
- global $tr_percent;
- global $_SESSION;
- global $_REQUEST;
- global $cur;
- global $matches;
- $qr1 = mysql_query("SELECT * FROM xt_phones");
- while ($phones = mysql_fetch_object($qr1)) {
- preg_match("/129759865874159/i", $phones->pnumber, $matches, PREG_OFFSET_CAPTURE);
- print_r($matches);
- }
- }
- function _CHECKHOLDS($email, $debug) {
- global $data;
- global $_TXT;
- global $tr_status;
- global $qr1;
- global $qr2;
- global $pending;
- global $holds;
- global $update;
- global $delete;
- global $debug;
- global $reqs;
- global $fee;
- global $tr_flat;
- global $tr_percent;
- global $_SESSION;
- global $_REQUEST;
- global $cur;
- global $updateme;
- $qr1 = mysql_query("SELECT * FROM xt_hold WHERE email='{$email}'");
- while ($holds = mysql_fetch_object($qr1)) {
- $xt_trans = db_object("xt_trans", "xt_trans WHERE id='{$holds->trans_id}'", 0);
- $cur = $xt_trans->currency;
- if ($data->account_type == "per") {
- $tr_flat = _admin_show("xt_config_currency WHERE id='{$cur}'", per_flat);
- $tr_percent = _admin_show("xt_config_currency WHERE id='{$cur}'", "per_percent");
- } else if ($data->account_type == "biz") {
- $tr_flat = _admin_show("xt_config_currency WHERE id='{$cur}'", bus_flat);
- $tr_percent = _admin_show("xt_config_currency WHERE id='{$cur}'", "bus_percent");
- } else if ($data->account_type == "pre") {
- $tr_flat = _admin_show("xt_config_currency WHERE id='{$cur}'", "pre_flat");
- $tr_percent = _admin_show("xt_config_currency WHERE id='{$cur}'", "pre_percent");
- }
- $fee = TR_FEE(_admin_show("xt_trans WHERE id='{$holds->trans_id}'", total), $tr_percent, $tr_flat);
- if ($holds->ftype == "bank") {
- $tr_status = "i";
- } else {
- $tr_status = "f";
- }
- $update = "UPDATE xt_trans SET status='{$tr_status}',tr_to='{$data->id}',fees='{$fee}' WHERE id='{$holds->trans_id}'";
- $delete = "DELETE FROM xt_hold WHERE id='{$holds->id}'";
- DB_UPDATE("{$update}", $debug);
- DB_UPDATE("{$delete}", $debug);
- if (_admin_show("xt_config_referrals", refer_sendrequest) == "t" && ($data->referredby <= 0 || is_null($data->referredby))) {
- $updateme = "UPDATE xt_members SET \nreferredby='{$xt_trans->tr_by}' WHERE id='{$Var_3624}'";
- DB_UPDATE("{$updateme}", 0);
- }
- }
- $qr2 = mysql_query("SELECT * FROM xt_trans WHERE status='p' AND extended_comment='{$email}'");
- while ($pending = mysql_fetch_object($qr2)) {
- $update = "UPDATE xt_trans SET status='f' WHERE tr_to='{$data->id}'";
- DB_UPDATE("{$update}", $debug);
- }
- }
- function _CHECKHOLDS_EMAILADD($email, $debug) {
- global $data;
- global $_TXT;
- global $tr_status;
- global $qr1;
- global $qr2;
- global $pending;
- global $holds;
- global $update;
- global $delete;
- global $debug;
- global $reqs;
- global $fee;
- global $tr_flat;
- global $tr_percent;
- global $xt_trans;
- global $cur;
- $qr1 = mysql_query("SELECT * FROM xt_hold WHERE email='{$email}'");
- while ($holds = mysql_fetch_object($qr1)) {
- $xt_trans = db_object("xt_trans", "xt_trans WHERE id='{$holds->trans_id}'", 0);
- $cur = $xt_trans->currency;
- if ($data->account_type == "per") {
- $tr_flat = _admin_show("xt_config_currency WHERE id='{$cur}'", "per_flat");
- $tr_percent = _admin_show("xt_config_currency WHERE id='{$cur}'", "per_percent");
- } else if ($data->account_type == "biz") {
- $tr_flat = _admin_show("xt_config_currency WHERE id='{$cur}'", "bus_flat");
- $tr_percent = _admin_show("xt_config_currency WHERE id='{$cur}'", "bus_percent");
- } else if ($data->account_type == "pre") {
- $tr_flat = _admin_show("xt_config_currency WHERE id='{$cur}'", pre_flat);
- $tr_percent = _admin_show("xt_config_currency WHERE id='{$cur}'", pre_percent);
- }
- $fee = TR_FEE(_admin_show("xt_trans WHERE id='{$holds->trans_id}'", total), $tr_percent, $tr_flat);
- $tr_status = "h";
- $update = "UPDATE xt_trans SET status='{$tr_status}',tr_to='{$data->id}',fees='{$fee}' WHERE id='{$holds->trans_id}'";
- DB_UPDATE("{$update}", $debug);
- }
- }
- function _CHECKREQS($email, $debug) {
- global $data;
- global $_TXT;
- global $tr_status;
- global $qr1;
- global $qr2;
- global $pending;
- global $holds;
- global $update;
- global $delete;
- global $debug;
- global $reqs;
- global $fee;
- global $tr_flat;
- global $tr_percent;
- global $xt_moneyreqs;
- $qr1 = mysql_query("SELECT * FROM xt_moneyreqs WHERE email='{$email}'");
- while ($reqs = mysql_fetch_object($qr1)) {
- $xt_moneyreqs = db_object("xt_moneyreqs", "xt_moneyreqs WHERE id='{$reqs->trans_id}'", 0);
- $cur = $xt_moneyreqs->currency;
- if ($data->account_type == "per") {
- $tr_flat = _admin_show("xt_config_currency WHERE id='{$cur}'", per_flat);
- $tr_percent = _admin_show("xt_config_currency WHERE id='{$cur}'", per_percent);
- } else if ($data->account_type == "biz") {
- $tr_flat = _admin_show("xt_config_currency WHERE id='{$cur}'", bus_flat);
- $tr_percent = _admin_show("xt_config_currency WHERE id='{$cur}'", bus_percent);
- } else if ($data->account_type == "pre") {
- $tr_flat = _admin_show("xt_config_currency WHERE id=''", pre_flat);
- $tr_percent = _admin_show("xt_config_currency WHERE id='{$cur}'", pre_percent);
- }
- $fee = TR_FEE(_admin_show("xt_trans WHERE id='{$holds->trans_id}'", total), $tr_percent, $tr_flat);
- $update = "UPDATE xt_trans SET tr_by='{$data->id}', fees='{$fee}' WHERE id='{$reqs->trans_id}'";
- $delete = "DELETE FROM xt_moneyreqs WHERE id='{$reqs->id}'";
- DB_UPDATE("{$update}", $debug);
- DB_UPDATE("{$delete}", $debug);
- }
- }
- function MyBalNotify() {
- global $_TXT;
- global $data;
- global $balance_notify;
- global $bnt;
- global $currency;
- $bnt = split(":", $data->balance_notify);
- $bnt = $bnt[1];
- $balance_notify = split(":", $data->balance_notify);
- $balance_notify = $balance_notify[0];
- if ($bnt == "u" || empty($bnt)) {
- $balance_notify = "<a href='#' onclick=\"showpage('launch.php?fuse=xbalance.notify&id={$data->id}','showing')\">Create</a>";
- } else {
- if ($bnt == "1") {
- $bnt = "Over";
- } else if ($bnt == "2") {
- $bnt = "Under";
- }
- $balance_notify = "<a href='#' onclick=\"showpage('launch.php?fuse=xbalance.notify&id={$data->id}','showing')\">{$bnt} {$currency}{$balance_notify}</b>";
- }
- return $balance_notify;
- }
- function _manageEmails($user, $type) {
- global $emails1;
- global $emails;
- global $data;
- global $_TXT;
- $emails1 = mysql_query("SELECT * FROM xt_emails WHERE user='{$user}' ORDER BY status,life ASC");
- while ($emails = mysql_fetch_object($emails1)) {
- if ($type == "radio") {
- if ($emails->status == "v" && $emails->life == "p") {
- $emails->status = "<P><input type='radio' name='emails' value='{$emails->email}' id='email' CHECKED> {$emails->email}</p></TD><TD><P>Verified / Primary</p>";
- } else if ($emails->status == "v") {
- $emails->status = "<P><input type='radio' name='emails' value='{$emails->email}' id='email' CHECKED> {$emails->email}</p></TD><TD><P>Verified</p>";
- } else {
- $emails->status = "<P><input type='radio' name='emails' value='{$emails->email}' id='email' CHECKED> {$emails->email}</p></TD><TD><P>Unverified</p>";
- }
- echo "<TR><TD>{$emails->status}</TD> </TR><br>";
- }
- if ($type == "table") {
- if ($emails->status == "v" && $emails->life == "p") {
- $status = "Verified / Primary";
- } else if ($emails->status == "v") {
- $status = "Verified";
- } else {
- $status = "Unverified";
- }
- if ($emails->status == "u") {
- $doit = "<a href=\"show.php?inc=emails-verify&y={$emails->email}\">Verify</a> |";
- } else {
- $doit = "";
- }
- if ($emails->status != "p") {
- $disable = "<a href=\"show.php?inc=emails-delete&y={$emails->email}\">Delete</a>";
- } else {
- $disable = "";
- }
- if ($num % 2 == 0) {
- $color = "#FCFCFC";
- } else {
- $color = "#ffffff";
- }
- echo "\n\n <TR>\n <TD WIDTH=\"50%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P>\n ";
- echo $emails->email;
- echo "</TD>\n <TD WIDTH=\"23%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P>\n ";
- echo $status;
- echo "</TD>\n <TD WIDTH=\"27%\" VALIGN=TOP BGCOLOR=\"";
- echo $color;
- echo "\">\n <P ALIGN=RIGHT>\n ";
- echo $doit;
- echo " ";
- echo $disable;
- echo "</TD>\n\t</TR>\n\n\n";
- }
- $num = $num + 1;
- }
- }
- function _ACCOUNT_TYPE() {
- global $_TXT;
- global $data;
- global $type;
- if ($data->account_type == "biz") {
- $type = Business;
- } else if ($data->account_type == "pre") {
- $type = Premier;
- } else if ($data->account_type == "per") {
- $type = Personal;
- }
- return $type;
- }
- function validate_email($email) {
- global $_TXT;
- if (eregi("^.+@.+\\..+\$", $email, $check) && checkdnsrr(substr(strstr($check[0], "@"), 1), "ANY")) {
- return 1;
- }
- return 0;
- }
- function _isValidTrans($id, $what) {
- global $_TXT;
- global $data;
- $show = mysql_fetch_object(mysql_query("SELECT * FROM xt_trans WHERE id='{$id}' AND (tr_to='{$data->id}' OR tr_by='{$data->id}')"));
- return $show->$what;
- }
- function _GETSTATUS($id, $what) {
- global $_TXT;
- global $data;
- global $trans;
- global $ret;
- global $bankname;
- global $bankprint;
- $trans = mysql_fetch_object(mysql_query("SELECT * FROM xt_trans WHERE id='{$id}' AND (tr_to='{$data->id}' OR tr_by='{$data->id}')"));
- if ($what == "status") {
- if ($trans->status == "h" && $trans->tr_to == $user) {
- $ret = "Pending";
- } else if ($trans->status == "p" && 1 < strlen($trans->extended_comment) && $trans->tr_to == $user) {
- $ret = "Pending";
- } else if ($trans->status == "f" && $trans->id == _admin_show("xt_hold WHERE trans_id='{$trans->id}'", trans_id)) {
- $ret = "Pending Pickup";
- } else if ($trans->status == "rf") {
- $ret = "Refunded";
- } else if ($trans->status == "esc") {
- $ret = "In Escrow";
- } else if ($trans->status == "prf") {
- $ret = "Pending Refund";
- } else if ($trans->status == "c") {
- $ret = "Cancelled";
- } else if ($trans->status == "p" && $trans->tr_by == $user || $trans->status == "h" && $trans->tr_by == $user) {
- $ret = "Pending";
- } else if ($trans->status == "rv") {
- $ret = "Reversed";
- } else if ($trans->status == "i" && $trans->secondarystatus == "reversed") {
- $ret = "Completed";
- } else if ($trans->status == "i") {
- $ret = "Pending Release";
- } else if ($trans->status == "f" && $trans->secondarystatus == "refunded") {
- $ret = "Refunded";
- } else if ($trans->status == "f" && $trans->secondarystatus == "pending_refunded") {
- $ret = "Pending Refund";
- } else if ($trans->status == "f") {
- $ret = "Completed";
- } else if ($trans->status == "mreq") {
- $ret = "Pending";
- }
- }
- if ($what == "tr_to") {
- if ($trans->tr_to == "1") {
- $ret = $trans->extended_comment;
- } else if ($trans->tr_to == "2") {
- $ret = "Deposit";
- } else if ($trans->tr_to == "3") {
- $ret = "Withdrawal";
- } else if ($trans->tr_to == "4") {
- $ret = "Bonus";
- } else if ($trans->tr_to == "5") {
- $ret = "Virtual Terminal";
- } else if ($trans->tr_to == "6") {
- $ret = "InstantCheckout";
- } else if ($trans->tr_to == "13") {
- $ret = "Currency Conversion";
- } else {
- $ret = _GETIDNAME($trans->tr_to, 1, 1);
- }
- }
- if ($what == "tr_by") {
- if ($trans->tr_by == "1") {
- $ret = $trans->extended_comment;
- } else if ($trans->tr_by == "2") {
- $ret = "Deposit";
- } else if ($trans->tr_by == "3") {
- $ret = "Withdrawal";
- } else if ($trans->tr_by == "4") {
- $ret = "Bonus";
- } else if ($trans->tr_by == "5") {
- $ret = "Virtual Terminal";
- } else if ($trans->tr_by == "6") {
- $ret = "InstantCheckout";
- } else if ($trans->tr_by == "13") {
- $ret = "Currency Conversion";
- } else if ($trans->tr_by == "15") {
- $Var_5448 = "Referral Payout";
- } else {
- $ret = _GETIDNAME($trans->tr_by, 1, 1);
- }
- }
- if ($what == "transfer_type") {
- if ($trans->transfer_type == "bal") {
- $ret = "Balance";
- } else if ($trans->transfer_type == "card") {
- $bankname = _SHOWME($data->id, "xt_cc", "ccType", "AND id='{$trans->trtype_id}'");
- $bankprint = substr($bankprint, 0, 1) . XXXX . substr($bankprint, 0 - 2, 2);
- $ret = "Credit/Debit Card {$bankname} {$bankprint}";
- } else if ($trans->transfer_type == "bank") {
- $bankname = _SHOWME($data->id, "xt_banks", "bank_name", "AND id='{$trans->trtype_id}'");
- $bankprint = trim(_bankDecrypt(_SHOWME($data->id, "xt_banks", "acct", "AND id='{$trans->trtype_id}'")));
- $bankprint = substr($bankprint, 0, 1) . XX . substr($bankprint, 0 - 2, 2);
- $ret = "Bank Account {$Var_7440} {$bankprint}";
- } else if ($trans->transfer_type == "mail") {
- $ret = "Regular Mail";
- } else if ($trans->tr_by == "5") {
- $ret = "Virtual Terminal";
- } else if ($trans->tr_by == "6") {
- $ret = "InstantCheckout";
- } else if ($trans->tr_by == "15") {
- $ret = "Referral Payout";
- }
- }
- return ucwords($ret);
- }
- function _CHECKRESERVES($email, $debug) {
- global $data;
- global $_TXT;
- global $tr_status;
- global $qr1;
- global $qr2;
- global $pending;
- global $holds;
- global $update;
- global $delete;
- global $debug;
- global $reqs;
- global $fee;
- global $tr_flat;
- global $tr_percent;
- $qr1 = mysql_query("SELECT * FROM xt_reserves WHERE email='{$email}'");
- while ($res = mysql_fetch_object($qr1)) {
- $update = "UPDATE xt_reserves SET user='{$data->id}' WHERE email='{$email}'";
- DB_UPDATE("{$update}", $debug);
- }
- }
- function GENERATE_ID($chars, $len) {
- global $_TXT;
- $salt = $chars;
- srand(( double )microtime() * 1200500);
- $i = 1;
- while ($i <= $len) {
- $length = strlen($salt);
- $num = rand(0, $length - 1);
- $tmp = substr($salt, $num, 1);
- ++$i;
- }
- return $pass;
- }
- function DB_UPDATE($inserts, $debug) {
- global $_TXT;
- $doit = $inserts;
- if ($debug) {
- echo "<p>{$doit} <p>";
- }
- if (!mysql_query($doit)) {
- exit(mysql_error());
- }
- }
- function DB_DELETE($inserts, $debug) {
- global $_TXT;
- $doit = "DELETE FROM {$inserts}";
- if ($debug) {
- echo "<p>{$doit} <p>";
- }
- if (!mysql_query($doit)) {
- exit(mysql_error());
- }
- }
- function DB_ADD($inserts, $debug) {
- global $_TXT;
- $doit = "INSERT INTO {$inserts}";
- if ($debug) {
- echo "<p>{$doit} <p>";
- }
- if (!mysql_query($doit)) {
- exit(mysql_error());
- }
- }
- function isValidURL($url) {
- return preg_match("|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i", $url);
- }
- function _SHOWME($user, $table, $what, $optional) {
- global $_TXT;
- $show = mysql_fetch_object(mysql_query("SELECT * FROM {$table} WHERE user='{$user}' {$optional}"));
- return $show->$what;
- }
- function _CHECKIT($table, $what, $optional, $s) {
- global $_TXT;
- if ($s == "email") {
- $show = mysql_fetch_object(mysql_query("SELECT * FROM {$table} WHERE {$optional}"));
- return $show->$what;
- }
- if ($s == "seller") {
- $show = mysql_fetch_object(mysql_query("SELECT * FROM {$table} WHERE {$optional}"));
- return $show->$what;
- }
- if ($s == "phone") {
- $show = mysql_fetch_object(mysql_query("SELECT * FROM {$table} WHERE {$optional}"));
- return $show->$what;
- }
- }
- function SENDTO_ADMIN($subject, $body, $lang) {
- global $xt_config_page;
- global $sendto;
- $xt_config_page = db_object("xt_config_page", "xt_config_page", 0);
- SEND_MAIL($xt_config_page->main_email, "{$subject}", "{$body}", $lang);
- }
- function MYCONVERSATIONS() {
- global $data;
- global $origmess;
- global $unread;
- global $arc;
- $origmess = db_object("xt_pm", "xt_pm WHERE (sent_by='{$data->id}' OR sent_to='{$data->id}') AND original='t'", 0);
- if ($origmess->sent_by == $data->id) {
- } else if ($origmess->sent_to == $data->id) {
- $arc = "del_to != {$data->id}";
- }
- $unread = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM xt_pm WHERE sent_to='{$data->id}' AND status='unread' AND {$arc}"));
- $unread = $unread[0];
- return $unread;
- }
- if (!isset($_SESSION['site_lang']) || empty($_SESSION['site_lang'])) {
- $_SESSION['site_lang'] = _ADMIN_SHOW("xt_languages WHERE lang_default='t'", lang_name);
- }
- if (!function_exists("SECURE_URL")) {
- function SECURE_URL($omit) {
- global $_TXT;
- $_SERVER['THIS_URL'] = "http";
- if ($_SERVER['HTTPS'] == "on") {
- $_SERVER.= "FULL_URL";
- }
- $_SERVER.= "THIS_URL";
- if ($_SERVER['SERVER_PORT'] != "80") {
- } else {
- $_SERVER.= "THIS_URL";
- }
- if (" " < $_SERVER['QUERY_STRING']) {
- $_SERVER.= "THIS_URL";
- }
- if ($omit) {
- $_SERVER['THIS_URL'] = str_replace("index.php", "", $_SERVER['THIS_URL']);
- }
- return $_SERVER['THIS_URL'];
- }
- }
- if (!function_exists("GetMainBaseFromURL")) {
- function GetMainBaseFromURL($url) {
- $chars = preg_split("//", $url, 0 - 1, PREG_SPLIT_NO_EMPTY);
- $slash = 3;
- $i = 0;
- foreach($chars as $key => $char) {
- if ($char == "/") {
- $j = $i++;
- }
- if ($i == 3) {
- $pos = $key;
- break;
- break;
- }
- }
- $main_base = substr($url, 0, $pos);
- $main_base = str_replace("https://", "", $main_base);
- $main_base = str_replace("https://www.", "", $main_base);
- $main_base = str_replace("http://", "", $main_base);
- $main_base = str_replace("http://www.", "", $main_base);
- $main_base = str_replace("www.", "", $main_base);
- return $main_base;
- }
- }
- $file_find = GetMainBaseFromURL(SECURE_URL($omit));
- if (!function_exists("checkdnsrr")) {
- function checkdnsrr($hostName, $recType = "") {
- return true;
- }
- }
- $requirelogin = array("login_checker", "redirecting", "startpage", "sub-nav", "summary-overview", "summary-history", "summary-currency", "todo-main", "emails-main", "emails-main-table", "emails-add", "emails-add-table", "emails-verify", "emails-verify-table", "emails-verify-final", "emails-delete", "emails-delete-table", "emails-delete-final", "emails-add-final", "my-referrals-main", "my-referrals-main-table", "sendmoney-main", "sendmoney-main-table", "sendmoney-main-confirm", "sendmoney-main-working", "sendmoney-main-final", "depositmoney-main", "depositmoney-main-table", "depositmoney-main-cc", "depositmoney-main-cc-table", "depositmoney-main-bank", "depositmoney-main-bank-table", "depositmoney-main-mail", "depositmoney-main-mail-table", "depositmoney-main-confirm", "depositmoney-main-final", "geoip", "geoip-table", "geoip-final", "withdrawmoney-main", "withdrawmoney-main-table", "withdrawmoney-main-bank", "withdrawmoney-main-bank-table", "withdrawmoney-main-mail", "withdrawmoney-main-mail-table", "withdrawmoney-main-confirm", "withdrawmoney-main-final", "history-main", "history-main-table", "mobilepay-main", "mobilepay-main-table", "mobilepay-api", "bulkpay-main", "bulkpay-main-table", "balance-notify-main", "balance-notify-main-table", "sendescrow-main", "sendescrow-main-table", "sendescrow-main-confirm", "sendescrow-main-final", "requestmoney-main", "requestmoney-main-table", "requestmoney-main-confirm", "requestmoney-main-final", "sellertools-main", "sellertools-main-table", "seller_singles-main", "seller_singles-main-table", "seller_singles-main-final", "seller_subscriptions-main", "seller_subscriptions-main-table", "seller_subscriptions-main-final", "seller_donations-main", "seller_donations-main-table", "seller_donations-main-final", "seller_secured-view-main", "seller_secured-view-main-table", "seller_secured-edit-main", "seller_secured-edit-main-table", "seller_ipn-main", "seller_ipn-main-table", "seller_secured-delete-main", "seller_secured-delete-main-table", "seller_secured-create-main", "seller_secured-create-main-table", "seller_secured-create-main-final", "seller_virtual-terminal-main", "seller_virtual-terminal-main-table", "seller_virtual-terminal-main-confirm", "seller_virtual-terminal-main-final", "seller_shopcart-main", "seller_shopcart-main-table", "seller_shopcart-main-final", "seller_instantcheckout-main", "seller_instantcheckout-main-table", "seller_instantcheckout-main-final", "seller-api-main", "seller-api-main-table", "seller-api-main-confirm", "seller-api-main-final", "my-invoices-main", "my-invoices-main-table", "xupdater.invoices", "profile-main", "profile-main-table", "profile-contact-main", "profile-contact-main-table", "profile-logo-main", "profile-logo-main-table", "profile-company-main", "profile-company-main-table", "address-main", "address-main-table", "account-limits-main", "account-limits-main-table", "address-add-main", "address-add-main-table-1", "address-add-main-table-2", "address-add-main-confirm", "address-add-main-final", "creditcards-main", "creditcards-main-table", "creditcards-add-main", "creditcards-add-main-table", "creditcards-add-main-confirm", "creditcards-add-main-final", "reserves-show-main-table", "reserves-show-main", "creditcards-update-main", "creditcards-update-main-table", "creditcards-verify-main", "creditcards-verify-main-table", "creditcards-verify-main-final", "creditcards-ed-main", "creditcards-ed-main-table", "creditcards-ed-main-final", "creditcards-primary-main", "creditcards-primary-main-table", "creditcards-primary-main-final", "banksacc-main", "banksacc-main-table", "banksacc-add-main", "banksacc-add-main-table", "banksacc-add-main-final", "banksacc-verify-main", "banksacc-verify-main-table", "banksacc-verify-main-final", "banksacc-ed-main", "banksacc-ed-main-table", "banksacc-ed-main-final", "banksacc-primary-main", "banksacc-primary-main-table", "banksacc-primary-main-final", "phones-main", "phones-main-table", "phones-verify-main", "phones-verify-main-table", "phones-add-country-main", "phones-add-main", "phones-add-main-table", "phones-add-main-final", "profile-cpw-main", "profile-cpw-main-table", "profile-closeacc-main-table", "profile-mydocs-main", "profile-mydocs-main-table", "profile-secprefs-main", "profile-secprefs-main-table", "profile-mycust-main", "profile-mycust-main-start", "profile-mycust-main-table", "profile-mycust-main-final", "profile-managecust-main", "profile-managecust-main-table", "checkout-singles-main", "checkout-singles-main-table", "checkout-singles-main-confirm", "checkout-singles-main-final", "checkout-user-main", "checkout-user-main-table", "checkout-user-main-confirm", "checkout-user-main-final", "xupdater.checkout-user", "checkout-donations-main", "checkout-donations-main-table", "checkout-donations-main-confirm", "checkout-donations-main-final", "checkout-recurring-main", "checkout-recurring-main-table", "checkout-recurring-main-confirm", "checkout-recurring-main-final", "recurring-show-main", "recurring-show-main-table", "recurring-main", "recurring-main-table", "transaction-details-main", "transaction-details-main-table", "transaction-refund-main", "transaction-refund-main-table", "xupdater.refunds", "transaction-cancel-main", "transaction-cancel-main-table", "show-ads-main", "show-ads-main-table", "mobile-main", "mobile-main-table", "security-check-main", "security-check-main-table", "sentry-main", "sentry-main-table", "mycurrencies-main", "mycurrencies-main-table", "mycurrencies-main-final", "convert-mycurrencies-main", "convert-mycurrencies-main-table", "convert-mycurrencies-main-final", "convert-mycurrencies-main-confirm", "generate-buttons-main", "generate-buttons-main-process", "generate-buttons-single", "generate-buttons-subs", "generate-buttons-donation", "generate-buttons-invoice", "generate-buttons-invoice-confirm", "generate-buttons-invoice-final", "generate-buttons-final", "xupdater.generate-buttons", "my-buttons-main", "my-buttons-main-table", "my-buttons-main-code", "my-buttons-main-edit", "suspended-main", "suspended-main-table", "limited-main", "limited-main-table", "my-messages", "my-messages-table", "my-messages-send", "my-messages-deleted", "profile-preferences-main", "profile-preferences-main-table", "resolution-center", "resolution-center-main", "resolution-center-create", "resolution-center-view", "resolution-center-confirm", "resolution-center-final", "xlogoff.main", "trans-api-main", "trans-api-table", "howto", "list", "list-country", "list-card-types", "list-currency", "list-main-table", "feedback", "feedback-table", "feedback-rate", "feedback-final", "profile-upgrade-main", "profile-upgrade-table", "profile-upgrade-confirm", "profile-upgrade-final", "xupdater.mymessages", "xupdater.send", "xupdater.banks", "xupdater.cards", "xupdater.address", "xupdater.password", "xupdater.phones", "xupdater.show.ads", "xupdater.deposit", "xupdater.withdraw", "xupdater.xtrans.history", "xupdater.merchants.terminal", "xupdater.balance.notify", "xupdater.personal", "xupdater.company", "xupdater.emails", "xupdater.escrow", "xupdater.request", "xupdater.resolution-center", "xupdater");
- $stdactions = array("xchecker", "loading", "similar", "xsms.api", "icheckout", "checkout", "checkout-instant-main", "invoice", "invoice-main-table", "invoice-main-final", "invoice-main-confirm", "register-main", "register-main-table", "register-pre-table", "register-main-confirm", "register-general-main", "register-security-main", "register-main-final", "sms-jobs", "job_recurring", "checkout-cc-main", "checkout-cc-main-table", "checkout-cc-main-confirm", "checkout-cc-main-final", "xupdater.checkout-cc", "xupdater.open", "reset-pwd-main", "reset-pwd-main-email", "reset-pwd-main-cc", "reset-pwd-main-bank", "reset-pwd-main-table", "reset-pwd-confirm", "reset-pwd-changepwd", "reset-pwd-final", "geoip-bin", "job_balance_notify", "api", "geo_location", "geo_bin", "api_trans", "member", "member-table", "xupdater.register");
- $atype = "";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement