tonygrafic

fix script

Apr 26th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.32 KB | None | 0 0
  1. <?
  2. ######################################################
  3. ###YOU DO NOT NEED TO EDIT ANYTHING BEYON THIS POINT##
  4. ######################################################
  5.  
  6. // lang stuff
  7. if(!isset($_SESSION['site_lang']) || empty($_SESSION['site_lang'])){
  8. $_SESSION['site_lang'] = _ADMIN_SHOW("xt_languages WHERE lang_default='t'",lang_name);
  9. }
  10.  
  11. if (!function_exists('SECURE_URL')) {
  12.  
  13. function SECURE_URL($omit){
  14. global $_TXT;
  15. $_SERVER['THIS_URL'] = 'http';
  16. if($_SERVER['HTTPS']=='on'){$_SERVER['FULL_URL'] .= 's';}
  17. $_SERVER['THIS_URL'] .= '://';
  18. if($_SERVER['SERVER_PORT']!='80') $_SERVER['THIS_URL'] .= $_SERVER['HTTP_HOST'].':'.$_SERVER['SERVER_PORT'].$_SERVER['SCRIPT_NAME'];
  19. else
  20. $_SERVER['THIS_URL'] .= $_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
  21. if($_SERVER['QUERY_STRING']>' '){$_SERVER['THIS_URL'] .= '?'.$_SERVER['QUERY_STRING'];}
  22.  
  23. if($omit){
  24. $_SERVER['THIS_URL'] = str_replace("index.php","",$_SERVER['THIS_URL']);
  25. }
  26. return $_SERVER['THIS_URL'];
  27. }
  28.  
  29. }
  30.  
  31. if (!function_exists('GetMainBaseFromURL')) {
  32. function GetMainBaseFromURL($url)
  33. {
  34. $chars = preg_split('//', $url, -1, PREG_SPLIT_NO_EMPTY);
  35.  
  36. $slash = 3; // 3rd slash
  37.  
  38. $i = 0;
  39.  
  40. foreach($chars as $key => $char)
  41. {
  42. if($char == '/')
  43. {
  44. $j = $i++;
  45. }
  46.  
  47. if($i == 3)
  48. {
  49. $pos = $key; break;
  50. }
  51. }
  52.  
  53. $main_base = substr($url, 0, $pos);
  54.  
  55. $main_base = str_replace("https://","",$main_base);
  56. $main_base = str_replace("https://www.","",$main_base);
  57. $main_base = str_replace("http://","",$main_base);
  58. $main_base = str_replace("http://www.","",$main_base);
  59. $main_base = str_replace("www.","",$main_base);
  60.  
  61. return $main_base;
  62. }
  63. }
  64. $file_find = GetMainBaseFromURL(SECURE_URL($omit));
  65.  
  66. // get security buttons
  67. function _GETSECURITY_BUTTONS($what){
  68. global $siteurl,$file,$handle,$x;
  69. $siteurl = _ADMIN_SHOW(xt_config_page,site_url);
  70.  
  71. if( file_exists("../SECURITY_ICONS")){
  72. $handle=opendir("../SECURITY_ICONS");
  73. while (false!==($file = readdir($handle))) {
  74. if ($file != "." && $file != "..") {
  75. $x = strtolower(substr($file, -4));
  76. if($x && $x == ".jpg" || $x == ".gif" || $x == ".png"){
  77. echo "<span><input name=\"security_icons\" type=\"radio\" value=\"$file\" id=\"radio-input\" style=\"position: relative;
  78. bottom : 35px;\"CHECKED> <img src=\"$siteurl/SECURITY_ICONS/$file\"></span><br>";
  79.  
  80. }
  81.  
  82. }
  83.  
  84. }
  85.  
  86. }
  87.  
  88. }
  89.  
  90. function _GETFLAGS($what){
  91. global $siteurl,$file,$handle,$x,$functions_full_path;
  92. $siteurl = _ADMIN_SHOW(xt_config_page,site_url);
  93.  
  94. if( file_exists("$functions_full_path/FLAGS/")){
  95. $handle=opendir("$functions_full_path/FLAGS/");
  96. while (false!==($file = readdir($handle))) {
  97. if ($file != "." && $file != "..") {
  98. $x = strtolower(substr($file, -4));
  99. if($x && $x == ".jpg" || $x == ".gif" || $x == ".png"){
  100. echo "<span><input name=\"button\" type=\"radio\" value=\"$file\" id=\"radio-input\" CHECKED> <img src=\"$siteurl/FLAGS/$file\"></span><br>";
  101.  
  102. }
  103.  
  104. }
  105.  
  106. }
  107.  
  108. }
  109.  
  110. }
  111.  
  112. function _GETFLAGS_ADM($what){
  113. global $siteurl,$file,$handle,$x,$functions_full_path;
  114. $siteurl = _ADMIN_SHOW(xt_config_page,site_url);
  115.  
  116. echo "<div style=\"width:425px;\">";
  117. if( file_exists("$functions_full_path/FLAGS/")){
  118. $handle=opendir("$functions_full_path/FLAGS/");
  119. while (false!==($file = readdir($handle))) {
  120. if ($file != "." && $file != "..") {
  121. $x = strtolower(substr($file, -4));
  122. if($x && $x == ".jpg" || $x == ".gif" || $x == ".png"){
  123. echo "<span style=\"margin-bottom:3px; padding: 3px; border: thin solid gray;\"><input name=\"button\" type=\"radio\" value=\"$file\" id=\"radio-input\"><img src=\"$siteurl/FLAGS/$file\" height=\"14\" width=\"20\" alt=\"".strtoupper($file)."\" title=\"".strtoupper($file)."\"></span>";
  124.  
  125. }
  126.  
  127. }
  128.  
  129. }
  130.  
  131. }
  132. echo "</div>";
  133.  
  134. }
  135.  
  136. // get merchant buttons
  137. function _GETBUTTONS($what){
  138. global $siteurl,$file,$handle,$x,$functions_full_path;
  139. $siteurl = _ADMIN_SHOW(xt_config_page,site_url);
  140.  
  141. if( file_exists("$functions_full_path/CHECKOUT_BUTTONS/$what")){
  142. $handle=opendir("$functions_full_path/CHECKOUT_BUTTONS/$what");
  143. while (false!==($file = readdir($handle))) {
  144. if ($file != "." && $file != "..") {
  145. $x = strtolower(substr($file, -4));
  146. if($x && $x == ".jpg" || $x == ".gif" || $x == ".png"){
  147. echo "<span><input name=\"button\" type=\"radio\" value=\"$file\" id=\"radio-input\" CHECKED> <img src=\"$siteurl/CHECKOUT_BUTTONS/$what/$file\"></span><br>";
  148.  
  149. }
  150.  
  151. }
  152.  
  153. }
  154.  
  155. }
  156.  
  157. }
  158.  
  159.  
  160. // show table data \\
  161. //\\ _SHOWME($data->id,"xt_company","company")
  162.  
  163.  
  164. // count it
  165. function _COUNTIT($table,$what){
  166. global $show;
  167. list($show) = mysql_fetch_row(mysql_query("SELECT COUNT($what) FROM $table"));
  168. return $show;
  169. }
  170.  
  171.  
  172.  
  173. // query user status \\
  174.  
  175. function _USERTATS($id){
  176. global $home,$cc,$bank,$_TXT,$count;
  177. ## query user status by checking verified items ##
  178.  
  179.  
  180. if(!_getEmail($id)){
  181. return "ur";
  182.  
  183. }else{
  184. // bank
  185. list($bank) = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM xt_banks WHERE user='$id' AND status='v'"));
  186.  
  187. // card
  188. list($cc) = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM xt_cc WHERE user='$id' AND status='v'"));
  189.  
  190. $count = $bank+$cc;
  191.  
  192. if($count > 0){
  193. return "v";
  194. }else{
  195. return "u";
  196. }
  197. }
  198.  
  199. } // end
  200.  
  201.  
  202. function _ADMIN_SHOW($table,$what){
  203.  
  204. $show = mysql_fetch_object(mysql_query(
  205. "SELECT * FROM $table"));
  206. return $show->$what;
  207. # mysql_close ($show);
  208. }
  209.  
  210. function DB_OBJECT($dbname,$table,$what){
  211. $dbname = mysql_fetch_object(mysql_query(
  212. "SELECT * FROM $table"));
  213.  
  214. //print_r($dbname);
  215. return $dbname;
  216. # mysql_close ($show);
  217. }
  218.  
  219. // show addy summary
  220. function _addyShow($user,$life,$input,$what){
  221. global $_TXT,$addy0,$addy1,$addy2,$addy3,$addy4, $status,$and2,$addy,$shipto,$data;
  222.  
  223.  
  224. if($life == 'count'){
  225.  
  226. $addy1 = mysql_num_rows(mysql_query("SELECT * FROM xt_address WHERE user='$user' AND status='v'"));
  227.  
  228. $addy2 = mysql_num_rows(mysql_query("SELECT * FROM xt_address WHERE user='$user' AND status='u'"));
  229.  
  230. $addy3 = mysql_num_rows(mysql_query("SELECT * FROM xt_address WHERE user='$user' AND status='d'"));
  231.  
  232. $addy4 = mysql_num_rows(mysql_query("SELECT * FROM xt_address WHERE user='$user' AND life='p'"));
  233.  
  234. if($what == '0'){
  235. $addy0 = $addy1+$addy2+$addy3;
  236. return $addy0;
  237. }
  238.  
  239. if($what == '1'){
  240. return $addy1;
  241. }
  242.  
  243. if($what == '2'){
  244. return $addy2;
  245. }
  246.  
  247. if($what == '3'){
  248. return $addy3;
  249. }
  250.  
  251. if($what == '4'){
  252. return $addy4;
  253. }
  254.  
  255. }
  256.  
  257.  
  258. if($life == 'list'){
  259.  
  260. if(!$what){
  261. $and2 = "";
  262. }else{
  263. $and2 = "AND status='v'";
  264. }
  265.  
  266. if($input == 'dropbox'){
  267. echo "<select id='select-input' name='addy'>";
  268. # $and2 = " AND (status='v' OR status='u')";
  269. }
  270.  
  271. $addy1 = mysql_query("SELECT * FROM xt_address WHERE user='$user'$and2 ORDER BY status,life ASC");
  272.  
  273. while ($addy = mysql_fetch_object($addy1)){
  274. $shipto = "$addy->address1 $addy->address2, $addy->city $addy->state $addy->zip $addy->country";
  275. $shipto = ucfirst(strtolower($shipto));
  276.  
  277. if($input == 'radio'){
  278.  
  279. if($addy->status == 'v' && $addy->life == 'p'){
  280. $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>";
  281.  
  282. }elseif($addy->status == 'v'){
  283. $status = "<P><input type='radio' name='addy' value='$addy->id' id='addy' CHECKED> $shipto</p></TD><TD><P>{$_TXT['global_verified']}</p>";
  284.  
  285. }elseif($addy->status == 'u'){
  286. $status = "<P><input type='radio' name='addy' value='$addy->id' id='addy' CHECKED> $shipto</p></TD><TD><P>{$_TXT['global_unverified']}</p>";
  287.  
  288. }elseif($addy->status == 'd'){
  289. $status = "<P><input type='radio' name='addy' value='$addy->id' id='addy' CHECKED> $shipto</p></TD><TD><P>{$_TXT['global_disabled']}</p>";
  290. }
  291.  
  292. echo "<TR><TD>$status</TD></TR><br>";
  293. }
  294.  
  295.  
  296. if($input == 'table'){
  297.  
  298. if($addy->status == 'v' && $addy->life == 'p'){
  299. $status = "{$_TXT['global_verified']} / {$_TXT['global_primary']}";
  300.  
  301. }elseif($addy->status == 'v'){
  302. $status = $_TXT['global_verified'];
  303.  
  304. }elseif($addy->status == 'u'){
  305. $status = $_TXT['global_unverified'];
  306.  
  307. }elseif($addy->status == 'd'){
  308. $status = $_TXT['global_disabled'];
  309. }
  310.  
  311. if($num%2==0)
  312. {
  313. $color = "#FCFCFC";
  314. }else{
  315. $color = "#ffffff";
  316. }
  317. ?>
  318. <TR>
  319. <TD WIDTH="50%" VALIGN=TOP BGCOLOR="<?=$color?>">
  320. <P>
  321. <?=$shipto?></TD>
  322. <TD WIDTH="23%" VALIGN=TOP BGCOLOR="<?=$color?>">
  323. <P>
  324. <?=$status?></TD>
  325. <TD WIDTH="27%" VALIGN=TOP BGCOLOR="<?=$color?>">
  326. <P ALIGN=RIGHT>
  327. <?=$doit?> <?=$disable?></TD>
  328. </TR>
  329. <?
  330. }
  331.  
  332. if($input == 'dropbox'){
  333.  
  334. if(strlen($shipto) > 35){
  335. $shipto = substr($shipto, 0, 35)."...";
  336. }
  337.  
  338.  
  339. if($addy->status == 'v' && $addy->life == 'p'){
  340. $status = "<option value='$addy->id' SELECTED>$shipto ({$_TXT['global_verified']} / {$_TXT['global_primary']})</option>";
  341.  
  342. }elseif($addy->status == 'v'){
  343. $status = "<option value='$addy->id'>$shipto ({$_TXT['global_verified']}) </option>";
  344.  
  345. }elseif($addy->status == 'u'){
  346. $status = "<option value='$addy->id'>$shipto ({$_TXT['global_unverified']}) </option>";
  347.  
  348. }
  349.  
  350. echo $status;
  351.  
  352. }
  353.  
  354. $num = $num+1;
  355.  
  356. }
  357.  
  358.  
  359.  
  360. if($input == 'dropbox'){
  361. echo "</select>";
  362. }
  363.  
  364.  
  365. }
  366.  
  367.  
  368.  
  369. }
  370.  
  371.  
  372. // show cc summary
  373. function _ccShow($user,$life,$input,$what){
  374. global $_TXT,$cc,$cc0,$cc1,$cc2,$cc3,$cc4,$cards,$status,$cards1,$and,$ccString,$data;
  375.  
  376.  
  377. if($life == 'count'){
  378. $cc0 = mysql_num_rows(mysql_query("SELECT * FROM xt_cc WHERE user='$user' AND life='p'"));
  379.  
  380. $cc1 = mysql_num_rows(mysql_query("SELECT * FROM xt_cc WHERE user='$user' AND status='v'"));
  381.  
  382. $cc2 = mysql_num_rows(mysql_query("SELECT * FROM xt_cc WHERE user='$user' AND status='u'"));
  383.  
  384. $cc3 = mysql_num_rows(mysql_query("SELECT * FROM xt_cc WHERE user='$user' AND (status='d' OR status='x')"));
  385.  
  386. if($what == '0'){
  387. $cc = $cc1+$cc2+$cc3;
  388. return $cc;
  389. }
  390.  
  391. if($what == '1'){
  392. return $cc1;
  393. }
  394.  
  395. if($what == '2'){
  396. return $cc2;
  397. }
  398.  
  399. if($what == '3'){
  400. return $cc3;
  401. }
  402.  
  403. if($what == '4'){
  404. return $cc0;
  405. }
  406. }
  407.  
  408. if(!$what){
  409. $and = "";
  410. }else{
  411. $and = "AND status='v'";
  412. }
  413.  
  414. if($life == 'list'){
  415.  
  416. if($input == 'dropbox'){
  417. echo "<select id='select-input' name='cc2'>";
  418.  
  419. }
  420.  
  421. $cards1 = mysql_query("SELECT * FROM xt_cc WHERE user='$user'$and ORDER BY status,life ASC");
  422.  
  423. while ($cards = mysql_fetch_object($cards1)){
  424. $ccString = trim(_ccDecrypt($cards->ccNum));
  425.  
  426. $ccString = substr($ccString, 0, 1).XXXX.substr($ccString, -2, 2);
  427.  
  428. if($input == 'radio'){
  429.  
  430. if($cards->status == 'v' && $cards->life == 'p'){
  431. $status = "<P><input type='radio' name='cc' value='$cards->id' id='cc' CHECKED> $cards->ccType $ccString</p></TD><TD><P>{$_TXT['global_verified']} / {$_TXT['global_primary']}</p>";
  432.  
  433. }elseif($cards->status == 'v'){
  434. $status = "<P><input type='radio' name='cc' value='$cards->id' id='cc' CHECKED> $cards->ccType $ccString</p></TD><TD><P>{$_TXT['global_verified']}</p>";
  435.  
  436. }elseif($cards->status == 'u'){
  437. $status = "<P><input type='radio' name='cc' value='$cards->id' id='cc' CHECKED> $cards->ccType $ccString</p></TD><TD><P>{$_TXT['global_unverified']}</p>";
  438.  
  439. }elseif($cards->status == 'd'){
  440. $status = "<P><input type='radio' name='cc' value='$cards->id' id='cc' CHECKED> $cards->ccType $ccString</p></TD><TD><P>{$_TXT['global_disabled']}</p>";
  441.  
  442. }elseif($cards->status == 'x'){
  443. $status = "<P><input type='radio' name='cc' value='$cards->id' id='cc' CHECKED> $cards->ccType $ccString</p></TD><TD><P>{$_TXT['global_expired']}</p>";
  444. }
  445.  
  446. echo "<TR><TD>$status</TD> </TR><br>";
  447. }
  448.  
  449.  
  450.  
  451. if($input == 'table'){
  452.  
  453. if($cards->status == 'v' && $cards->life == 'p'){
  454. $status = "{$_TXT['global_verified']} / {$_TXT['global_primary']}";
  455.  
  456. }elseif($cards->status == 'v'){
  457. $status = "{$_TXT['global_verified']}";
  458.  
  459. }elseif($cards->status == 'u'){
  460. $status = "{$_TXT['global_unverified']}";
  461.  
  462. }elseif($cards->status == 'd'){
  463. $status = "{$_TXT['global_disabled']}";
  464.  
  465. }elseif($cards->status == 'x'){
  466. $status = "{$_TXT['global_expired']}";
  467. }
  468.  
  469.  
  470. if($cards->status == 'u'){
  471. $doit = "<a href=\"show.php?inc=creditcards-verify-main&prcs=$data->user_unique~$data->id&y=$cards->id\">{$_TXT['xcardsmain_ver']}</a> |";
  472. }else{
  473. $doit = "";
  474. }
  475.  
  476. if($cards->status == 'v' && $cards->life != 'p'){
  477. $makeprime = "<a href=\"show.php?inc=creditcards-primary-main&prcs=$data->user_unique~$data->id&y=$cards->id\">{$_TXT['xcardsmain_pri']}</a> |";
  478. }else{
  479. $makeprime = "";
  480. }
  481.  
  482. if($cards->cards != 'd' || $banks->status != 'x'){
  483. $disable = "<a href=\"show.php?inc=creditcards-ed-main&prcs=$data->user_unique~$data->id&y=$cards->id\">{$_TXT['xcardsmain_ed']}</a>";
  484. }else{
  485. $disable = "";
  486. }
  487.  
  488. if($cards->cards == 'd' || $banks->status == 'x'){
  489. $enable = "<a href=\"show.php?inc=creditcards-ed-main&prcs=$data->user_unique~$data->id&y=$cards->id\">{$_TXT['global_enable']}</a>";
  490. }else{
  491. $enable = "";
  492. }
  493.  
  494. if($num%2==0)
  495. {
  496. $color = "#FCFCFC";
  497. }else{
  498. $color = "#ffffff";
  499. }
  500. ?>
  501.  
  502. <TR>
  503. <TD WIDTH="50%" VALIGN=TOP BGCOLOR="<?=$color?>">
  504. <P>
  505. <img src="img/<?=$cards->ccType?>.gif"> <?=$cards->ccType?> <?=$ccString?></TD>
  506. <TD WIDTH="23%" VALIGN=TOP BGCOLOR="<?=$color?>">
  507. <P>
  508. <?=$status?></TD>
  509. <TD WIDTH="27%" VALIGN=TOP BGCOLOR="<?=$color?>">
  510. <P ALIGN=RIGHT>
  511. <a href="show.php?inc=creditcards-update-main&prcs=<?=$data->user_unique?>~<?=$data->id?>&y=<?=$cards->id?>"><?=$_TXT['xcardsmain_ud']?></a> | <? echo "$doit $makeprime $disable"; ?></TD>
  512. </TR>
  513.  
  514. <?
  515.  
  516. }
  517.  
  518. if($input == 'dropbox'){
  519.  
  520. if($cards->status == 'v' && $cards->life == 'p'){
  521. $status = "<option value='$cards->id' SELECTED>$cards->ccType $ccString ({$_TXT['global_verified']} / {$_TXT['global_primary']})</option>";
  522.  
  523. }elseif($cards->status == 'v'){
  524. $status = "<option value='$cards->id'>$cards->ccType $ccString ({$_TXT['global_verified']}) </option>";
  525. }elseif($cards->status == 'u'){
  526. $status = "<option value='$cards->id'>$cards->ccType $ccString ({$_TXT['global_unverified']}) </option>";
  527. }elseif($cards->status == 'd'){
  528. $status = "<option value='$cards->id'>$cards->ccType $ccString ({$_TXT['global_disabled']}) </option>";
  529. }elseif($cards->status == 'x'){
  530. $status = "<option value='$cards->id'>$cards->ccType $ccString ({$_TXT['global_expired']}) </option>";
  531. }
  532.  
  533. echo $status;
  534.  
  535. }
  536.  
  537. $num = $num+1;
  538.  
  539. }
  540.  
  541. if($input == 'dropbox'){
  542. echo "</select>";
  543. }
  544.  
  545. }
  546.  
  547.  
  548. }
  549.  
  550. // show bank summary
  551. function _bankShow($user,$life,$input,$what){
  552. global $_TXT,$ba,$ba0,$ba1,$ba2,$ba3,$banks,$status,$banks1,$and,$bankString,$doit,$makeprime,$disable;
  553.  
  554.  
  555. if($life == 'count'){
  556. $ba0 = mysql_num_rows(mysql_query("SELECT * FROM xt_banks WHERE user='$user' AND life='p'"));
  557.  
  558. $ba1 = mysql_num_rows(mysql_query("SELECT * FROM xt_banks WHERE user='$user' AND status='v'"));
  559.  
  560. $ba2 = mysql_num_rows(mysql_query("SELECT * FROM xt_banks WHERE user='$user' AND status='u'"));
  561.  
  562. $ba3 = mysql_num_rows(mysql_query("SELECT * FROM xt_banks WHERE user='$user' AND (status='d' OR status='x')"));
  563.  
  564. if($what == '0'){
  565. $ba = $ba1+$ba2+$ba3;
  566. return $ba;
  567. }
  568.  
  569. if($what == '1'){
  570. return $ba1;
  571. }
  572.  
  573. if($what == '2'){
  574. return $ba2;
  575. }
  576.  
  577. if($what == '3'){
  578. return $ba3;
  579. }
  580.  
  581. if($what == '4'){
  582. return $ba0;
  583. }
  584. }
  585.  
  586. if(!$what){
  587. $and = "";
  588. }else{
  589. $and = "AND status='v'";
  590. }
  591.  
  592. if($life == 'list'){
  593.  
  594. if($input == 'dropbox'){
  595. echo "<select id='select-input' name='bank2'>";
  596.  
  597. }
  598.  
  599. $banks1 = mysql_query("SELECT * FROM xt_banks WHERE user='$user'$and ORDER BY status,life ASC");
  600.  
  601. while ($banks = mysql_fetch_object($banks1)){
  602. $bankString = trim(_bankDecrypt($banks->acct));
  603. $bankString = substr($bankString, 0, 1).XX.substr($bankString, -2, 2);
  604.  
  605. if($input == 'radio'){
  606.  
  607. if($banks->bankType == 's'){
  608. $banks->bankType = "Savings";
  609. }elseif($banks->bankType == 'c'){
  610. $banks->bankType = "Checking";
  611. }
  612.  
  613. if($banks->status == 'v' && $banks->life == 'p'){
  614. $status = "<P><input type='radio' name='bank' value='$banks->id' id='bank' CHECKED> $banks->bank_name ($banks->bankType) $bankString</p></TD><TD><P>{$_TXT['global_verified']} / {$_TXT['global_primary']}</p>";
  615.  
  616. }elseif($banks->status == 'v'){
  617. $status = "<P><input type='radio' name='bank' value='$banks->id' id='bank'> $banks->bank_name ($banks->bankType) $bankString</p></TD><TD><P>{$_TXT['global_verified']}</p>";
  618.  
  619. }elseif($banks->status == 'u'){
  620. $status = "<P><input type='radio' name='bank' value='$banks->id' id='bank'> $banks->bank_name ($banks->bankType) $bankString</p></TD><TD><P>{$_TXT['global_unverified'] }</p>";
  621.  
  622. }elseif($banks->status == 'd'){
  623. $status = "<P><input type='radio' name='bank' value='$banks->id' id='bank'> $banks->bank_name ($banks->bankType) $bankString</p></TD><TD><P>{$_TXT['global_disabled']}</p>";
  624.  
  625. }elseif($banks->status == 'x'){
  626. $status = "<P><input type='radio' name='bank' value='$banks->id' id='bank'> $banks->bank_name ($banks->bankType) $bankString</p></TD><TD><P>{$_TXT['global_expired']}</p>";
  627. }
  628.  
  629. echo "<TR><TD>$status</TD> </TR><br>";
  630. }
  631.  
  632.  
  633.  
  634. if($input == 'table'){
  635.  
  636. $banks->bank_name = strtoupper($banks->bank_name);
  637. if($banks->bankType == 's'){
  638. $banks->bankType = $_TXT['xbankadd_savings'];
  639. }elseif($banks->bankType == 'c'){
  640. $banks->bankType = $_TXT['xbankadd_checking'];
  641. }
  642.  
  643. if($banks->status == 'v' && $banks->life == 'p'){
  644. $status = "{$_TXT['global_verified']} / {$_TXT['global_primary']}";
  645.  
  646. }elseif($banks->status == 'v'){
  647. $status = $_TXT['global_verified'];
  648.  
  649. }elseif($banks->status == 'u'){
  650. $status = $_TXT['global_unverified'];
  651.  
  652. }elseif($banks->status == 'd'){
  653. $status = $_TXT['global_disabled'];
  654.  
  655. }elseif($banks->status == 'x'){
  656. $status = $_TXT['global_expired'];
  657. }
  658.  
  659.  
  660. if($banks->status == 'u'){
  661. $doit = "<a href=\"show.php?inc=banksacc-verify-main&prcs=$data->user_unique~$data->id&y=$banks->id\">{$_TXT['xbankman_verify']}</a> |";
  662. }else{
  663. $doit = "";
  664. }
  665.  
  666. if($banks->status == 'v' && $banks->life != 'p'){
  667. $makeprime = "<a href=\"show.php?inc=banksacc-primary-main&prcs=$data->user_unique~$data->id&y=$banks->id\">{$_TXT['xbankman_prime']}</a> |";
  668. }else{
  669. $makeprime = "";
  670. }
  671.  
  672. if($banks->status != 'd' || $banks->status != 'x'){
  673. $disable = "<a href=\"show.php?inc=banksacc-ed-main&prcs=$data->user_unique~$data->id&y=$banks->id\">{$_TXT['xbankman_dsenable']}</a>";
  674. }else{
  675. $disable = "";
  676. }
  677.  
  678. if($num%2==0)
  679. {
  680. $color = "#FCFCFC";
  681. }else{
  682. $color = "#ffffff";
  683. }
  684. ?>
  685.  
  686. <TR>
  687. <TD WIDTH="50%" VALIGN=TOP BGCOLOR="<?=$color?>">
  688. <P>
  689. <?=$banks->bank_name?> (<?=$banks->bankType?>) <?=$bankString?></TD>
  690. <TD WIDTH="23%" VALIGN=TOP BGCOLOR="<?=$color?>">
  691. <P>
  692. <?=$status?></TD>
  693. <TD WIDTH="27%" VALIGN=TOP BGCOLOR="<?=$color?>">
  694. <P ALIGN=RIGHT>
  695. <? echo "$doit $makeprime $disable"; ?></TD>
  696. </TR>
  697.  
  698. <?
  699. }
  700.  
  701. if($input == 'dropbox'){
  702.  
  703. if($banks->bankType == 's'){
  704. $banks->bankType = $_TXT['xbankadd_savings'];
  705. }elseif($banks->bankType == 'c'){
  706. $banks->bankType = $_TXT['xbankadd_checking'];
  707. }
  708.  
  709. if($banks->status == 'v' && $banks->life == 'p'){
  710. $status = "<option value='$banks->id' SELECTED>$banks->bank_name ($banks->bankType) $bankString ({$_TXT['global_verified']} / {$_TXT['global_primary']})</option>";
  711.  
  712. }elseif($banks->status == 'v'){
  713. $status = "<option value='$banks->id'>$banks->bank_name ($banks->bankType) $bankString ({$_TXT['global_verified']}) </option>";
  714. }elseif($banks->status == 'u'){
  715. $status = "<option value='$banks->id'>$banks->bank_name ($banks->bankType) $bankString ({$_TXT['global_unverified']}) </option>";
  716. }elseif($banks->status == 'd'){
  717. $status = "<option value='$banks->id'>$banks->bank_name ($banks->bankType) $bankString ({$_TXT['global_disable']}) </option>";
  718. }elseif($banks->status == 'x'){
  719. $status = "<option value='$banks->id'>$banks->bank_name ($banks->bankType) $bankString ({$_TXT['global_expired']}) </option>";
  720. }
  721.  
  722. echo $status;
  723.  
  724. }
  725.  
  726. $num = $num+1;
  727.  
  728. }
  729.  
  730. if($input == 'dropbox'){
  731. echo "</select>";
  732. }
  733.  
  734. }
  735.  
  736.  
  737. }
  738.  
  739.  
  740.  
  741. // show phone summary
  742. function _phoneShow($user,$life,$input,$what){
  743. global $_TXT,$ph,$ph0,$ph1,$ph2,$ph3,$status,$and,$phString,$data,$verifyit;
  744.  
  745.  
  746. if($life == 'count'){
  747. $ph0 = mysql_num_rows(mysql_query("SELECT * FROM xt_phones WHERE user='$user' AND life='p'"));
  748.  
  749. $ph1 = mysql_num_rows(mysql_query("SELECT * FROM xt_phones WHERE user='$user' AND status='v'"));
  750.  
  751. $ph2 = mysql_num_rows(mysql_query("SELECT * FROM xt_phones WHERE user='$user' AND status='u'"));
  752.  
  753. $ph3 = mysql_num_rows(mysql_query("SELECT * FROM xt_phones WHERE user='$user' AND (status='d' OR status='x')"));
  754.  
  755. if($what == '0'){
  756. $ph = $ph1+$ph2+$ph3;
  757. return $ph;
  758. }
  759.  
  760. if($what == '1'){
  761. return $ph1;
  762. }
  763.  
  764. if($what == '2'){
  765. return $ph2;
  766. }
  767.  
  768. if($what == '3'){
  769. return $ph3;
  770. }
  771.  
  772. if($what == '4'){
  773. return $ph0;
  774. }
  775. }
  776.  
  777. if(!$what){
  778. $and = "";
  779. }else{
  780. $and = "AND status='v'";
  781. }
  782.  
  783. if($life == 'list'){
  784.  
  785. if($input == 'dropbox'){
  786. echo "<select id='select-input' name='phone'>";
  787.  
  788. }
  789.  
  790. $ph1 = mysql_query("SELECT * FROM xt_phones WHERE user='$user'$and ORDER BY status ASC");
  791.  
  792. while ($ph = mysql_fetch_object($ph1)){
  793.  
  794. // find type
  795. if($ph->ptype == 'm'){
  796. $ph->ptype = $_TXT['global_phone_mobile'];
  797.  
  798. }elseif($ph->ptype == 'h'){
  799. $ph->ptype = $_TXT['global_phone_home'];
  800.  
  801. }elseif($ph->ptype == 'f'){
  802. $ph->ptype = $_TXT['global_phone_fax'];
  803.  
  804. }elseif($ph->ptype == 'b'){
  805. $ph->ptype = $_TXT['global_phone_business'];
  806.  
  807. }
  808.  
  809.  
  810. if($input == 'table'){
  811.  
  812. if($ph->status == 'v' && $ph->life == 'p'){
  813. $status = "{$_TXT['global_verified']} / {$_TXT['global_primary']}";
  814.  
  815. }elseif($ph->status == 'v'){
  816. $status = $_TXT['global_verified'];
  817.  
  818. }elseif($ph->status == 'u'){
  819. $status = $_TXT['global_unverified'];
  820. $verifyit = "<a href=\"show.php?inc=phones-verify-main&prcs=$data->user_unique~$data->id&y=$ph->pnumber\">{$_TXT['global_verify']}</a>";
  821.  
  822. }elseif($ph->status == 'd'){
  823. $status = $_TXT['global_disabled'];
  824.  
  825. }elseif($ph->status == 'x'){
  826. $status = $_TXT['global_expired'];
  827. }
  828.  
  829. //$ph->pnumber = substr($ph->pnumber, 0, 5).substr($ph->pnumber, 5);
  830. //$ph->pnumber = str_replace($ph->ccode, "", $ph->pnumber);
  831.  
  832. $ph->pnumber = substr($ph->pnumber, strlen($ph->ccode));
  833.  
  834. if($num%2==0)
  835. {
  836. $color = "#FCFCFC";
  837. }else{
  838. $color = "#ffffff";
  839. }
  840. ?>
  841.  
  842. <TR>
  843. <TD WIDTH="50%" VALIGN=TOP BGCOLOR="<?=$color?>">
  844. <P>
  845. <? echo "+$ph->ccode $ph->pnumber"; ?></TD>
  846. <TD WIDTH="23%" VALIGN=TOP BGCOLOR="<?=$color?>">
  847. <P>
  848. <?=$status?></TD>
  849. <TD WIDTH="27%" VALIGN=TOP BGCOLOR="<?=$color?>">
  850. <P ALIGN=RIGHT>
  851. <? echo "$verifyit"; ?></TD>
  852. </TR>
  853.  
  854. <?
  855. }
  856.  
  857.  
  858. if($input == 'radio'){
  859.  
  860. if($ph->status == 'v' && $ph->life == 'p'){
  861. $status = "<P><input type='radio' name='phone' value='$ph->id' id='phone' CHECKED> +($ph->ccode) $ph->pnumber ($ph->ptype)</p></TD><TD><P>{$_TXT['global_verified']} / {$_TXT['global_primary']}</p>";
  862.  
  863. }elseif($ph->status == 'v'){
  864. $status = "<P><input type='radio' name='phone' value='$ph->id' id='phone' CHECKED> +($ph->ccode) $ph->pnumber ($ph->ptype)</p></TD><TD><P>{$_TXT['global_verified'] }</p>";
  865.  
  866. }elseif($ph->status == 'u'){
  867. $status = "<P><input type='radio' name='phone' value='$ph->id' id='phone' CHECKED> +($ph->ccode) $ph->pnumber ($ph->ptype)</p></TD><TD><P>{$_TXT['global_unverified']}</p>";
  868.  
  869. }elseif($ph->status == 'd'){
  870. $status = "<P><input type='radio' name='phone' value='$ph->id' id='phone' CHECKED> +($ph->ccode) $ph->pnumber ($ph->ptype)</p></TD><TD><P>{$_TXT['global_disabled']}</p>";
  871.  
  872. }elseif($ph->status == 'x'){
  873. $status = "<P><input type='radio' name='phone' value='$ph->id' id='phone' CHECKED> +($ph->ccode) $ph->pnumber ($ph->ptype)</p></TD><TD><P>{$_TXT['global_expired']}</p>";
  874. }
  875.  
  876. echo "<TR><TD>$status</TD> </TR><br>";
  877. }
  878.  
  879. if($input == 'dropbox'){
  880.  
  881. if($ph->status == 'v' && $ph->life == 'p'){
  882. $status = "<option value='$ph->id' SELECTED>+($ph->ccode) $ph->pnumber ($ph->ptype) ({$_TXT['global_verified']} / {$_TXT['global_primary']})</option>";
  883.  
  884. }elseif($ph->status == 'v'){
  885. $status = "<option value='$ph->id' SELECTED>+($ph->ccode) $ph->pnumber ($ph->ptype) ({$_TXT['global_verified']}) </option>";
  886. }elseif($ph->status == 'u'){
  887. $status = "<option value='$ph->id' SELECTED>+($ph->ccode) $ph->pnumber ($ph->ptype) ({$_TXT['global_unverified']}) </option>";
  888. }elseif($ph->status == 'd'){
  889. $status = "<option value='$ph->id' SELECTED>+($ph->ccode) $ph->pnumber ($ph->ptype) ({$_TXT['global_disabled']}) </option>";
  890. }elseif($ph->status == 'x'){
  891. $status = "<option value='$ph->id' SELECTED>+($ph->ccode) $ph->pnumber ($ph->ptype) ({$_TXT['global_expired']}) </option>";
  892. }
  893.  
  894. echo $status;
  895.  
  896. }
  897.  
  898.  
  899. $num = $num+1;
  900.  
  901. }
  902.  
  903. if($input == 'dropbox'){
  904. echo "</select>";
  905. }
  906.  
  907. }
  908.  
  909.  
  910. }
  911.  
  912. // what is user email
  913. function _getEmail($id,$link){
  914. global $_TXT;
  915. $user = mysql_fetch_object(mysql_query("SELECT * FROM xt_members WHERE id='$id'"));
  916.  
  917. // show link to profile page \\
  918. if($link){
  919. $user->email = "<a href=\"?cmd=xpr&i=$id\">$user->email</a>";
  920. }else{
  921. $user->email = $user->email;
  922. }
  923.  
  924. return $user->email;
  925. }
  926.  
  927. // find out user's preferred language
  928. function _getUserLang($id){
  929. global $_TXT;
  930. $user = mysql_fetch_object(mysql_query("SELECT * FROM xt_members WHERE id='$id'"));
  931.  
  932. return $user->my_language;
  933. }
  934.  
  935. // create error messages
  936. function _ERROR($msg,$type){
  937. global $_epost,$_TXT,$_errorcode;
  938.  
  939. if(!$type){
  940. return die("<div id='failed' class='failed' onclick=\"$('update_results').hide()\">
  941. <img src='img/spacer.gif' onload=\"$('update_results').show()\"> $msg
  942. </div>");
  943. $_failed = 1;
  944. }elseif($type == '3'){
  945. echo "<div id='failed' class='failed' onclick=\"$('update_results').hide()\">
  946. <img src='img/spacer.gif' onload=\"$('update_results').show()\">
  947. &raquo; $msg
  948. </div>";
  949. $_epost = 1;
  950. }elseif($type == '1'){
  951. echo "<div class='failed'>
  952. $msg
  953. </div>";
  954. $_epost = 1;
  955. }elseif($type == '2'){
  956. echo "$msg";
  957. }elseif($type == '4'){
  958. return die("status=0&error={$_REQUEST['errorcode']}&reason=$msg");
  959. }
  960. }
  961.  
  962. // create success messages
  963. function _SUCCESS($msg){
  964. global $_TXT;
  965. return die("<div class='success' onclick=\"$('update_results').hide()\">
  966. <img src='img/spacer.gif' onload=\"$('update_results').show()\">
  967. $msg
  968. </div>");
  969. }
  970.  
  971.  
  972. // check transaction hold
  973. function _CHECKPHONES($p,$debug){
  974. global $data,$_TXT,$tr_status,$qr1,$qr2,$pending,$holds,$update,$delete,$debug,$reqs,
  975. $fee,$tr_flat,$tr_percent,$_SESSION,$_REQUEST,$cur,$matches;
  976.  
  977. $qr1 = mysql_query(
  978. "SELECT * FROM xt_phones");
  979. //echo $qr1;
  980.  
  981. while ($phones = mysql_fetch_object($qr1)){
  982.  
  983. //echo $phones->pnumber;
  984.  
  985. preg_match('/129759865874159/i', $phones->pnumber, $matches, PREG_OFFSET_CAPTURE);
  986. print_r($matches);
  987.  
  988. }
  989.  
  990. } // end
  991.  
  992.  
  993. // IPN
  994. function run_ipn($url,$transid,$user,$status){
  995. $qarray = array();
  996. array_push($qarray, "transid=" . urlencode($transid));
  997. array_push($qarray, "uid=" . urlencode($user));
  998. array_push($qarray, "status=" . urlencode($status));
  999. $query = implode('&', $qarray);
  1000.  
  1001. $ch = curl_init("$url");
  1002. curl_setopt($ch, CURLOPT_POST, 1);
  1003. curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
  1004. curl_setopt($ch, CURLOPT_TIMEOUT, 4);
  1005. curl_setopt($ch, CURLOPT_HEADER, 0);
  1006. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  1007. $result = curl_exec($ch);
  1008. curl_close($ch);
  1009.  
  1010. }
  1011. // END IPN
  1012.  
  1013.  
  1014.  
  1015. // check transaction hold
  1016. function _CHECKHOLDS($email,$debug){
  1017. global $data,$_TXT,$tr_status,$qr1,$qr2,$pending,$holds,$update,$delete,$debug,$reqs,
  1018. $fee,$tr_flat,$tr_percent,$_SESSION,$_REQUEST,$cur,$updateme,$accfee;
  1019.  
  1020. //$cur = $_SESSION['cur'];
  1021.  
  1022. $qr1 = mysql_query(
  1023. "SELECT * FROM xt_hold WHERE email='$email'");
  1024.  
  1025. while ($holds = mysql_fetch_object($qr1)){
  1026.  
  1027. // open up a connection
  1028. $xt_trans = DB_OBJECT("xt_trans","xt_trans WHERE id='$holds->trans_id'",0);
  1029. $cur = $xt_trans->currency;
  1030.  
  1031. // GET FEE
  1032. $accfee = DB_OBJECT("acc","xt_config_accounts_fees WHERE currency='$cur' AND account_id='$data->account_type'",0);
  1033. $tr_flat = $accfee->receive_flat;
  1034. $tr_percent = $accfee->receive_percent;
  1035. // END FEE
  1036.  
  1037. $fee = TR_FEE(_ADMIN_SHOW("xt_trans WHERE id='$holds->trans_id'",total),$tr_percent,$tr_flat);
  1038.  
  1039. // if used bank account
  1040. if($holds->ftype == 'bank'){
  1041. $tr_status = 'i';
  1042. }else{
  1043. $tr_status = 'f';
  1044. }
  1045.  
  1046. // do the query thing
  1047. $update = "UPDATE xt_trans SET status='$tr_status',tr_to='$data->id',fees='$fee' WHERE id='$holds->trans_id'";
  1048. $delete = "DELETE FROM xt_hold WHERE id='$holds->id'";
  1049.  
  1050. // send it, no debug
  1051. DB_UPDATE("$update",$debug);
  1052. DB_UPDATE("$delete",$debug);
  1053.  
  1054. // if referredby auto create is on
  1055. if(_ADMIN_SHOW("xt_config_referrals",refer_sendrequest) == 't' && ($data->referredby <= 0 || is_null($data->referredby) )){
  1056.  
  1057. $updateme = "UPDATE xt_members SET
  1058. referredby='$xt_trans->tr_by' WHERE id='$data->id'";
  1059.  
  1060. // send it, no debug
  1061. DB_UPDATE("$updateme",0);
  1062. }
  1063.  
  1064. }
  1065.  
  1066. $qr2 = mysql_query(
  1067. "SELECT * FROM xt_trans WHERE status='p' AND extended_comment='$email'");
  1068.  
  1069. while ($pending = mysql_fetch_object($qr2)){
  1070.  
  1071.  
  1072. // do the query thing
  1073. $update = "UPDATE xt_trans SET status='f' WHERE tr_to='$data->id'";
  1074.  
  1075.  
  1076. // send it, no debug
  1077. DB_UPDATE("$update",$debug);
  1078.  
  1079. }
  1080. // mysql_close ($show);
  1081. }
  1082.  
  1083. // check transaction hold when adding email
  1084. function _CHECKHOLDS_EMAILADD($email,$debug){
  1085. global $data,$_TXT,$tr_status,$qr1,$qr2,$pending,$holds,$update,$delete,$debug,$reqs,
  1086. $fee,$tr_flat,$tr_percent,$xt_trans,$cur;
  1087.  
  1088. $qr1 = mysql_query(
  1089. "SELECT * FROM xt_hold WHERE email='$email'");
  1090.  
  1091. while ($holds = mysql_fetch_object($qr1)){
  1092.  
  1093. $xt_trans = DB_OBJECT("xt_trans","xt_trans WHERE id='$holds->trans_id'",0);
  1094. $cur = $xt_trans->currency;
  1095.  
  1096.  
  1097. // GET FEE
  1098. $accfee = DB_OBJECT("acc","xt_config_accounts_fees WHERE currency='$cur' AND account_id='$data->account_type'",0);
  1099. $tr_flat = $accfee->receive_flat;
  1100. $tr_percent = $accfee->receive_percent;
  1101. // END FEE
  1102.  
  1103. $fee = TR_FEE(_ADMIN_SHOW("xt_trans WHERE id='$holds->trans_id'",total),$tr_percent,$tr_flat);
  1104.  
  1105. $tr_status = 'h';
  1106.  
  1107. // do the query thing
  1108. $update = "UPDATE xt_trans SET status='$tr_status',tr_to='$data->id',fees='$fee' WHERE id='$holds->trans_id'";
  1109.  
  1110. // send it, no debug
  1111. DB_UPDATE("$update",$debug);
  1112.  
  1113. }
  1114.  
  1115. // mysql_close ($show);
  1116. }
  1117.  
  1118.  
  1119. // check request money hold
  1120. function _CHECKREQS($email,$debug){
  1121. global $data,$_TXT,$tr_status,$qr1,$qr2,$pending,$holds,$update,$delete,$debug,$reqs,
  1122. $fee,$tr_flat,$tr_percent,$xt_moneyreqs;
  1123.  
  1124. $qr1 = mysql_query(
  1125. "SELECT * FROM xt_moneyreqs WHERE email='$email'");
  1126.  
  1127. while ($reqs = mysql_fetch_object($qr1)){
  1128.  
  1129. $xt_moneyreqs = DB_OBJECT("xt_moneyreqs","xt_moneyreqs WHERE id='$reqs->trans_id'",0);
  1130. $cur = $xt_moneyreqs->currency;
  1131.  
  1132. // GET FEE
  1133. $accfee = DB_OBJECT("acc","xt_config_accounts_fees WHERE currency='$cur' AND account_id='$data->account_type'",0);
  1134. $tr_flat = $accfee->receive_flat;
  1135. $tr_percent = $accfee->receive_percent;
  1136. // END FEE
  1137.  
  1138. $fee = TR_FEE(_ADMIN_SHOW("xt_trans WHERE id='$holds->trans_id'",total),$tr_percent,$tr_flat);
  1139.  
  1140. // do the query thing
  1141. $update = "UPDATE xt_trans SET tr_by='$data->id', fees='$fee' WHERE id='$reqs->trans_id'";
  1142. $delete = "DELETE FROM xt_moneyreqs WHERE id='$reqs->id'";
  1143.  
  1144. // send it, no debug
  1145. DB_UPDATE("$update",$debug);
  1146. DB_UPDATE("$delete",$debug);
  1147.  
  1148. }
  1149.  
  1150. // mysql_close ($show);
  1151. }
  1152.  
  1153. // Balance notify output \\
  1154. function MyBalNotify(){
  1155. global $_TXT,$data,$balance_notify,$bnt,$currency;
  1156. list($balance_notify, $bnt) = split(':', $data->balance_notify);
  1157.  
  1158. if($bnt == 'u' || empty($bnt)){
  1159. $balance_notify = "<a href='#' onclick=\"showpage('launch.php?fuse=xbalance.notify&id=$data->id','showing')\">Create</a>";
  1160. }else{
  1161. if($bnt == '1'){
  1162. $bnt = "Over";
  1163. }elseif($bnt == '2'){
  1164. $bnt = "Under";
  1165. }
  1166. $balance_notify = "<a href='#' onclick=\"showpage('launch.php?fuse=xbalance.notify&id=$data->id','showing')\">$bnt $currency$balance_notify</b>";
  1167. }
  1168. return $balance_notify;
  1169. }
  1170.  
  1171. //geoip location
  1172. function geo_location($ip,$maxid,$orig){
  1173. global $query,$url,$host,$path,$timeout,$fp,$buf,$lines,$geo,$r,$add_r;
  1174.  
  1175. $query = "http://geoip3.maxmind.com/f?l=" . $maxid . "&i=" . $ip;
  1176.  
  1177. $url = parse_url($query);
  1178. $host = $url["host"];
  1179. $path = $url["path"] . "?" . $url["query"];
  1180. $timeout = 1;
  1181. $fp = fsockopen ($host, 80, $errno, $errstr, $timeout)
  1182. or die('Can not open connection to server.');
  1183. if ($fp) {
  1184. fputs ($fp, "GET $path HTTP/1.0\nHost: " . $host . "\n\n");
  1185. while (!feof($fp)) {
  1186. $buf .= fgets($fp, 128);
  1187. }
  1188. $lines = split("\n", $buf);
  1189. $geo = $lines[count($lines)-1];
  1190. fclose($fp);
  1191. } else {
  1192. # enter error handing code here
  1193. }
  1194. //echo "$geo<p>";
  1195.  
  1196. $r = explode(',', $geo);
  1197.  
  1198. $insertme = "Country Code = $r[0]
  1199. Region Code = $r[1]
  1200. City = $r[2]
  1201. Postal Code = $r[3]
  1202. Latitude = $r[4]
  1203. Longitude = $r[5]
  1204. Metropolitan Code = $r[6]
  1205. Area Code = $r[7]
  1206. ISP = $r[8]
  1207. Organization = $r[9]
  1208. Error code = $r[10]";
  1209.  
  1210.  
  1211. // add recovery
  1212. $add_r = "xt_geoip SET
  1213. geoip ='".addslashes($insertme)."',
  1214. orig = '".addslashes($orig)."',
  1215. geotype= 'loc'";
  1216.  
  1217. //echo $add_r;
  1218.  
  1219. DB_ADD("$add_r",0);
  1220.  
  1221. }
  1222.  
  1223. //geoip bin
  1224. function geo_bin($maxid,$ip,$orig,$city,$region,$postal,$country,$domain,$bin,$forwardedip,$custphone,$binname,$binphone,$reqtype,$emailmd5,$shipaddr){
  1225. global $query,$url,$host,$path,$timeout,$fp,$buf,$lines,$geo,$r,$add_r,$siteurl;
  1226.  
  1227. require_once("geoip/CreditCardFraudDetection.php");
  1228.  
  1229. //first we create a new CreditCardFraudDetection object
  1230. $ccfs = new CreditCardFraudDetection;
  1231.  
  1232. // Set inputs and store them in a hash
  1233. // See http://www.maxmind.com/app/ccv for more details on the input fields
  1234.  
  1235. // Enter your license key here (non registered users limited to 20 lookups per day)
  1236. $h["license_key"] = $maxid;
  1237.  
  1238. // Required fields
  1239. $h["i"] = $ip; // set the client ip address
  1240. $h["city"] = $city; // set the billing city
  1241. $h["region"] = $region; // set the billing state
  1242. $h["postal"] = $postal; // set the billing zip code
  1243. $h["country"] = $country; // set the billing country
  1244.  
  1245. // Recommended fields
  1246. $h["domain"] = $domain; // Email domain
  1247. $h["bin"] = $bin; // bank identification number
  1248. $h["forwardedIP"] = $forwardedip; // X-Forwarded-For or Client-IP HTTP Header
  1249. $h["custPhone"] = $custphone; // Area-code and local prefix of customer phone number
  1250.  
  1251. // Optional fields
  1252. $h["binName"] = $binname; // bank name
  1253. $h["binPhone"] = $binphone; // bank customer service phone number on back of credit card
  1254. $h["requested_type"] = $reqtype; // Which level (free, city, premium) of CCFD to use
  1255. $h["emailMD5"] = $emailmd5; // CreditCardFraudDetection.php will take
  1256. // MD5 hash of e-mail address passed to emailMD5 if it detects '@' in the string
  1257. $h["shipAddr"] = $shipaddr; // Shipping Address
  1258. $h["txnID"] = $_REQUEST['']; // Transaction ID
  1259. $h["sessionID"] = $_REQUEST['']; // Session ID
  1260.  
  1261. // If you want to disable Secure HTTPS or don't have Curl and OpenSSL installed
  1262. // uncomment the next line
  1263. // $ccfs->isSecure = 0;
  1264.  
  1265. //set the time out to be five seconds
  1266. $ccfs->timeout = 5;
  1267.  
  1268. //uncomment to turn on debugging
  1269. // $ccfs->debug = 1;
  1270.  
  1271. //next we pass the input hash to the server
  1272. $ccfs->input($h);
  1273.  
  1274. //then we query the server
  1275. $ccfs->query();
  1276.  
  1277. //then we get the result from the server
  1278. $h = $ccfs->output();
  1279. //echo "<!--start-->";
  1280.  
  1281. //then finally we print out the result
  1282. $outputkeys = array_keys($h);
  1283. $numoutputkeys = count($h);
  1284. for ($i = 0; $i < $numoutputkeys; $i++) {
  1285. $key = $outputkeys[$i];
  1286. $value = $h[$key];
  1287.  
  1288. $a = "$value";
  1289.  
  1290. $lines = split("\n", $a);
  1291. $data = $lines[count($lines)-1];
  1292.  
  1293. $geo = explode(",",$data);
  1294.  
  1295. //echo $key . " = " . $value . "<br>";
  1296.  
  1297. $arr[$key] = $value;
  1298.  
  1299. }
  1300.  
  1301.  
  1302. $insertme = "Distance = $arr[distance]
  1303. Country Match = $arr[countryMatch]
  1304. Country Code = $arr[countryCode]
  1305. Free Email = $arr[freeMail]
  1306. Anonymous Proxy = $arr[anonymousProxy]
  1307. Fraud Score = $arr[score]
  1308. Bin Match = $arr[binMatch]
  1309. Bin Country = $arr[binCountry]
  1310. Error = $arr[err]
  1311. Proxy Score = $arr[proxyScore]
  1312. Spam Score = $arr[spamScore]
  1313. Region = $arr[ip_region]
  1314. City = $arr[ip_city]
  1315. Latitude = $arr[ip_latitude]
  1316. Longitude = $arr[ip_longitude]
  1317. Bin Name = $arr[binName]
  1318. ISP = $arr[ip_isp]
  1319. ISP Org = $arr[ip_org]
  1320. Bin Name Match = $arr[binNameMatch]
  1321. Bin Phone Match = $arr[binPhoneMatch]
  1322. Bin Phone = $arr[binPhone]
  1323. Customer Phone Billing Location = $arr[custPhoneInBillingLoc]
  1324. High Risk Country = $arr[highRiskCountry]
  1325. City Postal Match = $arr[cityPostalMatch]
  1326. Shipping City Postal Match = $arr[shipCityPostalMatch]
  1327. Is Trans Proxy = $arr[isTransProxy]";
  1328.  
  1329.  
  1330. // add recovery
  1331. $add_r = "xt_geoip SET
  1332. geoip ='".addslashes($insertme)."',
  1333. orig = '".addslashes($orig)."',
  1334. geotype= 'bin'";
  1335.  
  1336. //echo $add_r;
  1337.  
  1338. DB_ADD("$add_r",0);
  1339.  
  1340. }
  1341.  
  1342. function _RELEASEPENDING($id,$debug){
  1343.  
  1344. $qr1 = mysql_query(
  1345. "SELECT * FROM xt_trans WHERE id='$id'");
  1346.  
  1347. while ($holds = mysql_fetch_object($qr1)){
  1348.  
  1349. // do the query thing
  1350. $update = "UPDATE xt_trans SET status='f' WHERE id='$id' LIMIT 1";
  1351.  
  1352. // send it, no debug
  1353. DB_UPDATE("$update",$debug);
  1354.  
  1355. }
  1356.  
  1357. }// end _RELEASEPENDING
  1358.  
  1359.  
  1360.  
  1361.  
  1362. // do manage email address \\
  1363. function _manageEmails($user,$type){
  1364. global $emails1,$emails,$data,$_TXT;
  1365.  
  1366. $emails1 = mysql_query("SELECT * FROM xt_emails WHERE user='$user' ORDER BY status,life ASC");
  1367.  
  1368. while ($emails = mysql_fetch_object($emails1)){
  1369.  
  1370.  
  1371. if($type == 'radio'){
  1372. if($emails->status == 'v' && $emails->life == 'p'){
  1373. $emails->status = "<P><input type='radio' name='emails' value='$emails->email' id='email' CHECKED> $emails->email</p></TD><TD><P>{$_TXT['global_verified']} / {$_TXT['global_primary']}</p>";
  1374. }elseif($emails->status == 'v'){
  1375. $emails->status = "<P><input type='radio' name='emails' value='$emails->email' id='email' CHECKED> $emails->email</p></TD><TD><P>{$_TXT['global_verified']}</p>";
  1376. }else{
  1377. $emails->status = "<P><input type='radio' name='emails' value='$emails->email' id='email' CHECKED> $emails->email</p></TD><TD><P>{$_TXT['global_unverified']}</p>";
  1378. }
  1379.  
  1380. echo "<TR><TD>$emails->status</TD> </TR><br>";
  1381.  
  1382.  
  1383.  
  1384. }
  1385.  
  1386.  
  1387.  
  1388. if($type == 'table'){
  1389. if($emails->status == 'v' && $emails->life == 'p'){
  1390. $status = "{$_TXT['global_verified']} / {$_TXT['global_primary']}";
  1391. }elseif($emails->status == 'v'){
  1392. $status = $_TXT['global_verified'];
  1393. }else{
  1394. $status = $_TXT['global_unverified'];
  1395. }
  1396.  
  1397. if($emails->status == 'u'){
  1398. $doit = "<a href=\"show.php?inc=emails-verify&y=$emails->email\">{$_TXT['global_verify']}</a> |";
  1399. }else{
  1400. $doit = "";
  1401. }
  1402.  
  1403. if($emails->status != 'p'){
  1404. $disable = "<a href=\"show.php?inc=emails-delete&y=$emails->email\">{$_TXT['global_delete']}</a>";
  1405. }else{
  1406. $disable = "";
  1407. }
  1408.  
  1409. if($num%2==0)
  1410. {
  1411. $color = "#FCFCFC";
  1412. }else{
  1413. $color = "#ffffff";
  1414. }
  1415. ?>
  1416.  
  1417.  
  1418. <TR>
  1419. <TD WIDTH="50%" VALIGN=TOP BGCOLOR="<?=$color?>">
  1420. <P>
  1421. <?=$emails->email?></TD>
  1422. <TD WIDTH="23%" VALIGN=TOP BGCOLOR="<?=$color?>">
  1423. <P>
  1424. <?=$status?></TD>
  1425. <TD WIDTH="27%" VALIGN=TOP BGCOLOR="<?=$color?>">
  1426. <P ALIGN=RIGHT>
  1427. <?=$doit?> <?=$disable?></TD>
  1428. </TR>
  1429.  
  1430.  
  1431. <?
  1432.  
  1433. }
  1434. $num = $num+1;
  1435. }
  1436.  
  1437.  
  1438.  
  1439. } // end
  1440.  
  1441. // show account type \\
  1442. function _ACCOUNT_TYPE(){
  1443. global $_TXT,$data,$type;
  1444. $type = DB_OBJECT("acc","xt_config_accounts WHERE id='$data->account_type'",0);
  1445.  
  1446. return ucwords($type->account_name);
  1447. }
  1448.  
  1449. // check if valid email address
  1450. function validate_email($email) {
  1451. global $_TXT;
  1452. if (eregi("^.+@.+\\..+$", $email, $check)) {
  1453. if (checkdnsrr(substr(strstr($check[0], '@'), 1), "ANY")) {
  1454. return 1;
  1455. }
  1456. }
  1457. return 0;
  1458. }
  1459.  
  1460. // check transaction validity & status
  1461. function _isValidTrans($id,$what){
  1462. global $_TXT,$data;
  1463.  
  1464. $show = mysql_fetch_object(mysql_query(
  1465. "SELECT * FROM xt_trans WHERE id='$id' AND (tr_to='$data->id' OR tr_by='$data->id')"));
  1466.  
  1467. return $show->$what;
  1468. // mysql_close ($show);
  1469. }
  1470.  
  1471. // get status output
  1472. function _GETSTATUS($id,$what){
  1473. global $_TXT,$data,$trans,$ret,$bankname,$bankprint;
  1474.  
  1475. $trans = mysql_fetch_object(mysql_query(
  1476. "SELECT * FROM xt_trans WHERE id='$id' AND (tr_to='$data->id' OR tr_by='$data->id')"));
  1477.  
  1478.  
  1479. if($what == 'status'){
  1480.  
  1481. if($trans->status == 'h' && $trans->tr_to == $user){
  1482. $ret = $_TXT['global_st_p'];
  1483. }
  1484.  
  1485. elseif($trans->status == 'p' && strlen($trans->extended_comment) > 1 && $trans->tr_to == $user){
  1486. $ret = $_TXT['global_st_p'];
  1487. }
  1488.  
  1489. elseif(($trans->status == 'f') && ($trans->id == _ADMIN_SHOW("xt_hold WHERE trans_id='$trans->id'",trans_id))){
  1490. $ret = $_TXT['global_st_h1'];
  1491. }
  1492.  
  1493.  
  1494. elseif($trans->status == 'rf') {
  1495. $ret = $_TXT['global_st_rf'];
  1496. }
  1497.  
  1498. elseif($trans->status == 'esc') {
  1499. $ret = $_TXT['global_st_esc'];
  1500. }
  1501.  
  1502. elseif($trans->status == 'prf') {
  1503. $ret = $_TXT['global_st_prf'];
  1504. }
  1505.  
  1506. elseif($trans->status == 'c') {
  1507. $ret = $_TXT['global_st_c'];
  1508. }
  1509.  
  1510. elseif(($trans->status == 'p' && $trans->tr_by == $user) || ($trans->status == 'h' && $trans->tr_by == $user)) {
  1511. $ret = $_TXT['global_st_p'];
  1512. }
  1513.  
  1514. elseif($trans->status == 'rv') {
  1515. $ret = $_TXT['global_st_rv'];
  1516. }
  1517.  
  1518. elseif($trans->status == 'i' && $trans->secondarystatus == 'reversed'){
  1519. $ret = $_TXT['global_st_f'];
  1520. }
  1521.  
  1522. elseif($trans->status == 'i'){
  1523. $ret = $_TXT['global_st_i'];
  1524. }
  1525.  
  1526. elseif($trans->status == 'f' && $trans->secondarystatus == 'refunded'){
  1527. $ret = $_TXT['global_st_rf'];
  1528. }
  1529.  
  1530. elseif($trans->status == 'f' && $trans->secondarystatus == 'pending_refunded'){
  1531. $ret = $_TXT['global_st_prf'];
  1532. }
  1533.  
  1534. elseif($trans->status == 'f'){
  1535. $ret = $_TXT['global_st_f'];
  1536. }
  1537.  
  1538. elseif($trans->status == 'mreq'){
  1539. $ret = $_TXT['global_st_p'];
  1540. }
  1541.  
  1542.  
  1543. }
  1544.  
  1545. // tr to
  1546. if($what == 'tr_to'){
  1547. if($trans->tr_to == '1'){
  1548. $ret = $trans->extended_comment;
  1549.  
  1550. }elseif($trans->tr_to == '2'){
  1551. $ret = $_TXT['global_2'];
  1552.  
  1553. }elseif($trans->tr_to == '3'){
  1554. $ret = $_TXT['global_3'];
  1555.  
  1556. }elseif($trans->tr_to == '4'){
  1557. $ret = $_TXT['global_4'];
  1558.  
  1559. }elseif($trans->tr_to == '5'){
  1560. $ret = $_TXT['global_5'];
  1561.  
  1562. }elseif($trans->tr_to == '6'){
  1563. $ret = $_TXT['global_6'];
  1564.  
  1565. }elseif($trans->tr_to == '13'){
  1566. $ret = $_TXT['global_13'];
  1567.  
  1568. }elseif($trans->tr_to == '16'){
  1569. $ret = $_TXT['global_16'];
  1570.  
  1571. }else{
  1572. $ret = _GETIDNAME($trans->tr_to,1,1);;
  1573.  
  1574. }
  1575. }
  1576.  
  1577. // tr by
  1578.  
  1579. if($what == 'tr_by'){
  1580. if($trans->tr_by == '1'){
  1581. $ret = $trans->extended_comment;
  1582.  
  1583. }elseif($trans->tr_by == '2'){
  1584. $ret = $_TXT['global_2'];
  1585.  
  1586. }elseif($trans->tr_by == '3'){
  1587. $ret = $_TXT['global_3'];
  1588.  
  1589. }elseif($trans->tr_by == '4'){
  1590. $ret = $_TXT['global_4'];
  1591.  
  1592. }elseif($trans->tr_by == '5'){
  1593. $ret = $_TXT['global_5'];
  1594.  
  1595. }elseif($trans->tr_by == '6'){
  1596. $ret = $_TXT['global_6'];
  1597.  
  1598. }elseif($trans->tr_by == '13'){
  1599. $ret = $_TXT['global_13'];
  1600.  
  1601. }elseif($trans->tr_by == '15'){
  1602. $ret = $_TXT['global_15'];
  1603.  
  1604. }else{
  1605. $ret = _GETIDNAME($trans->tr_by,1,1);
  1606.  
  1607. }
  1608. }
  1609.  
  1610. // funding
  1611. if($what == 'transfer_type'){
  1612. if($trans->transfer_type == 'bal'){
  1613. $ret = $_TXT['global_accountbalance'];
  1614. }elseif($trans->transfer_type == 'card'){
  1615. $bankname = _SHOWME($data->id,"xt_cc","ccType","AND id='$trans->trtype_id'");
  1616. $bankprint = trim(_ccDecrypt(_SHOWME($data->id,"xt_cc","ccNum","AND id='$trans->trtype_id'")));
  1617. $bankprint = substr($bankprint, 0, 1).XXXX.substr($bankprint, -2, 2);
  1618. $ret = "{$_TXT['global_creditcard']} $bankname $bankprint";
  1619. }elseif($trans->transfer_type == 'bank'){
  1620. $bankname = _SHOWME($data->id,"xt_banks","bank_name","AND id='$trans->trtype_id'");
  1621. $bankprint = trim(_bankDecrypt(_SHOWME($data->id,"xt_banks","acct","AND id='$trans->trtype_id'")));
  1622. $bankprint = substr($bankprint, 0, 1).XX.substr($bankprint, -2, 2);
  1623. $ret = "{$_TXT['global_bankaccount']} $bankname $bankprint";
  1624. }elseif($trans->transfer_type == 'mail'){
  1625. $ret = $_TXT['global_mail'];
  1626. }elseif($trans->tr_by == '5'){
  1627. $ret = $_TXT['global_5'];
  1628. }elseif($trans->tr_by == '6'){
  1629. $ret = $_TXT['global_6'];
  1630. }elseif($trans->tr_by == '15'){
  1631. $ret = $_TXT['global_15'];
  1632.  
  1633. }
  1634. }
  1635.  
  1636. return ucwords($ret);
  1637. // mysql_close ($show);
  1638. }
  1639.  
  1640.  
  1641.  
  1642. // check reserves being held
  1643. function _CHECKRESERVES($email,$debug){
  1644. global $data,$_TXT,$tr_status,$qr1,$qr2,$pending,$holds,$update,$delete,$debug,$reqs,
  1645. $fee,$tr_flat,$tr_percent;
  1646.  
  1647. $qr1 = mysql_query(
  1648. "SELECT * FROM xt_reserves WHERE email='$email'");
  1649.  
  1650. while ($res = mysql_fetch_object($qr1)){
  1651.  
  1652. // do the query thing
  1653. $update = "UPDATE xt_reserves SET user='$data->id' WHERE email='$email'";
  1654.  
  1655. // send it, no debug
  1656. DB_UPDATE("$update",$debug);
  1657.  
  1658. }
  1659.  
  1660. // mysql_close ($show);
  1661. }
  1662.  
  1663.  
  1664.  
  1665. // create randon generated numbers \\
  1666. //\\ GENERATE_ID("1234567890",10)
  1667. function GENERATE_ID($chars,$len){
  1668. global $_TXT;
  1669.  
  1670. $salt = $chars;
  1671. srand((double)microtime()*1200500);
  1672. $i = 1;
  1673. while ($i <= $len) { // this is the number of digits
  1674. $length = strlen($salt);
  1675. $num = rand(0, $length - 1);
  1676. $tmp = substr($salt, $num, 1);
  1677. $pass = $pass . $tmp;
  1678. $i++;
  1679. }
  1680.  
  1681. return $pass;
  1682.  
  1683. }
  1684.  
  1685. // MYSQL ONLY \\
  1686.  
  1687. // mysql update \\
  1688. function DB_UPDATE($inserts,$debug){
  1689. global $_TXT;
  1690.  
  1691. $doit = $inserts;
  1692.  
  1693. //\\ show mysql input
  1694. if($debug){
  1695. echo "<p>$doit <p>";
  1696. }
  1697.  
  1698. mysql_query($doit) or die( mysql_error() );
  1699. // mysql_close ($doit);
  1700.  
  1701. }
  1702.  
  1703. // mysql add query \\
  1704. function DB_DELETE($inserts,$debug){
  1705. global $_TXT;
  1706.  
  1707. $doit = "DELETE FROM $inserts";
  1708.  
  1709. //\\ show mysql input
  1710. if($debug){
  1711. echo "<p>$doit <p>";
  1712. }
  1713.  
  1714. mysql_query($doit) or die( mysql_error() );
  1715. // mysql_close ($doit);
  1716.  
  1717. }
  1718.  
  1719.  
  1720. // mysql add query \\
  1721. function DB_ADD($inserts,$debug){
  1722. global $_TXT;
  1723.  
  1724. $doit = "INSERT INTO $inserts";
  1725.  
  1726. //\\ show mysql input
  1727. if($debug){
  1728. echo "<p>$doit <p>";
  1729. }
  1730.  
  1731. mysql_query($doit) or die( mysql_error() );
  1732. // mysql_close ($doit);
  1733.  
  1734. }
  1735.  
  1736. function isValidURL($url)
  1737. {
  1738. return preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url);
  1739. }
  1740.  
  1741. // show table data \\
  1742. //\\ _SHOWME($data->id,"xt_company","company")
  1743.  
  1744. function _SHOWME($user,$table,$what,$optional){
  1745. global $_TXT;
  1746.  
  1747. $show = mysql_fetch_object(mysql_query(
  1748. "SELECT * FROM $table WHERE user='$user' $optional"));
  1749. return $show->$what;
  1750. // mysql_close ($show);
  1751. }
  1752.  
  1753. function _CHECKIT($table,$what,$optional,$s){
  1754. global $_TXT;
  1755.  
  1756. if($s == 'email'){
  1757. $show = mysql_fetch_object(mysql_query(
  1758. "SELECT * FROM $table WHERE $optional"));
  1759. return $show->$what;
  1760. }
  1761.  
  1762. if($s == 'seller'){
  1763. $show = mysql_fetch_object(mysql_query(
  1764. "SELECT * FROM $table WHERE $optional"));
  1765. return $show->$what;
  1766. }
  1767.  
  1768. if($s == 'phone'){
  1769. $show = mysql_fetch_object(mysql_query(
  1770. "SELECT * FROM $table WHERE $optional"));
  1771. return $show->$what;
  1772. }
  1773.  
  1774. }
  1775.  
  1776.  
  1777.  
  1778. function SENDTO_ADMIN($subject,$body,$lang){
  1779. global $xt_config_page,$sendto;
  1780. $xt_config_page = DB_OBJECT("xt_config_page","xt_config_page",0);
  1781. SEND_MAIL($xt_config_page->main_email,"$subject","$body",$lang);
  1782. }
  1783.  
  1784. function MYCONVERSATIONS(){
  1785. global $data, $origmess, $unread,$arc;
  1786.  
  1787. $origmess = DB_OBJECT("xt_pm","xt_pm WHERE (sent_by='$data->id' OR sent_to='$data->id') AND original='t'",0);
  1788.  
  1789. if($origmess->sent_by == $data->id){
  1790. $arc = "del_by != $data->id";
  1791. }elseif($origmess->sent_to == $data->id){
  1792. $arc = "del_to != $data->id";
  1793. }
  1794.  
  1795. list($unread) = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM xt_pm WHERE sent_to='$data->id' AND status='unread' AND $arc"));
  1796.  
  1797. return $unread;
  1798.  
  1799. }
  1800.  
  1801.  
  1802. if(!function_exists('checkdnsrr'))
  1803. {
  1804. function checkdnsrr($hostName, $recType = '')
  1805. {
  1806.  
  1807. return true;
  1808. }
  1809.  
  1810. }
  1811.  
  1812.  
  1813.  
  1814.  
  1815. $requirelogin = array(
  1816.  
  1817. 'login_checker',
  1818. 'redirecting',
  1819. 'startpage',
  1820. 'sub-nav',
  1821. 'summary-overview',
  1822. 'summary-history',
  1823. 'summary-currency',
  1824. 'todo-main',
  1825.  
  1826. 'emails-main',
  1827. 'emails-main-table',
  1828. 'emails-add',
  1829. 'emails-add-table',
  1830. 'emails-verify',
  1831. 'emails-verify-table',
  1832. 'emails-verify-final',
  1833. 'emails-delete',
  1834. 'emails-delete-table',
  1835. 'emails-delete-final',
  1836. 'emails-add-final',
  1837.  
  1838. 'my-referrals-main',
  1839. 'my-referrals-main-table',
  1840.  
  1841. 'sendmoney-main',
  1842. 'sendmoney-main-table',
  1843. 'sendmoney-main-confirm',
  1844. 'sendmoney-main-working',
  1845. 'sendmoney-main-final',
  1846.  
  1847. 'depositmoney-main',
  1848. 'depositmoney-main-table',
  1849.  
  1850. 'depositmoney-main-cc',
  1851. 'depositmoney-main-cc-table',
  1852.  
  1853. 'depositmoney-main-bank',
  1854. 'depositmoney-main-bank-table',
  1855. 'depositmoney-main-mail',
  1856. 'depositmoney-main-mail-table',
  1857. 'depositmoney-main-confirm',
  1858. 'depositmoney-main-final',
  1859.  
  1860. 'geoip',
  1861. 'geoip-table',
  1862. 'geoip-final',
  1863.  
  1864. 'withdrawmoney-main',
  1865. 'withdrawmoney-main-table',
  1866. 'withdrawmoney-main-bank',
  1867. 'withdrawmoney-main-bank-table',
  1868. 'withdrawmoney-main-mail',
  1869. 'withdrawmoney-main-mail-table',
  1870. 'withdrawmoney-main-confirm',
  1871. 'withdrawmoney-main-final',
  1872.  
  1873. 'history-main',
  1874. 'history-main-table',
  1875.  
  1876. 'mobilepay-main',
  1877. 'mobilepay-main-table',
  1878. 'mobilepay-api',
  1879.  
  1880. 'bulkpay-main',
  1881. 'bulkpay-main-table',
  1882.  
  1883. 'balance-notify-main',
  1884. 'balance-notify-main-table',
  1885.  
  1886. 'sendescrow-main',
  1887. 'sendescrow-main-table',
  1888. 'sendescrow-main-confirm',
  1889. 'sendescrow-main-final',
  1890.  
  1891. 'requestmoney-main',
  1892. 'requestmoney-main-table',
  1893. 'requestmoney-main-confirm',
  1894. 'requestmoney-main-final',
  1895.  
  1896. 'sellertools-main',
  1897. 'sellertools-main-table',
  1898.  
  1899. 'seller_singles-main',
  1900. 'seller_singles-main-table',
  1901. 'seller_singles-main-final',
  1902.  
  1903. 'seller_subscriptions-main',
  1904. 'seller_subscriptions-main-table',
  1905. 'seller_subscriptions-main-final',
  1906.  
  1907. 'seller_donations-main',
  1908. 'seller_donations-main-table',
  1909. 'seller_donations-main-final',
  1910.  
  1911. 'seller_secured-view-main',
  1912. 'seller_secured-view-main-table',
  1913.  
  1914. 'seller_secured-edit-main',
  1915. 'seller_secured-edit-main-table',
  1916.  
  1917. 'seller_ipn-main',
  1918. 'seller_ipn-main-table',
  1919.  
  1920. 'seller_secured-delete-main',
  1921. 'seller_secured-delete-main-table',
  1922.  
  1923. 'seller_secured-create-main',
  1924. 'seller_secured-create-main-table',
  1925. 'seller_secured-create-main-final',
  1926.  
  1927. 'seller_virtual-terminal-main',
  1928. 'seller_virtual-terminal-main-table',
  1929. 'seller_virtual-terminal-main-confirm',
  1930. 'seller_virtual-terminal-main-final',
  1931.  
  1932. 'seller_shopcart-main',
  1933. 'seller_shopcart-main-table',
  1934. 'seller_shopcart-main-final',
  1935.  
  1936. 'seller_instantcheckout-main',
  1937. 'seller_instantcheckout-main-table',
  1938. 'seller_instantcheckout-main-final',
  1939.  
  1940. 'seller-api-main',
  1941. 'seller-api-main-table',
  1942. 'seller-api-main-confirm',
  1943. 'seller-api-main-final',
  1944.  
  1945. 'my-invoices-main',
  1946. 'my-invoices-main-table',
  1947. 'xupdater.invoices',
  1948.  
  1949. 'profile-main',
  1950. 'profile-main-table',
  1951.  
  1952. 'profile-contact-main',
  1953. 'profile-contact-main-table',
  1954.  
  1955. 'profile-logo-main',
  1956. 'profile-logo-main-table',
  1957.  
  1958. 'profile-company-main',
  1959. 'profile-company-main-table',
  1960.  
  1961. 'address-main',
  1962. 'address-main-table',
  1963.  
  1964. 'account-limits-main',
  1965. 'account-limits-main-table',
  1966.  
  1967. 'address-add-main',
  1968. 'address-add-main-table-1',
  1969. 'address-add-main-table-2',
  1970. 'address-add-main-confirm',
  1971. 'address-add-main-final',
  1972.  
  1973. 'creditcards-main',
  1974. 'creditcards-main-table',
  1975.  
  1976. 'creditcards-add-main',
  1977. 'creditcards-add-main-table',
  1978. 'creditcards-add-main-confirm',
  1979. 'creditcards-add-main-final',
  1980.  
  1981. 'reserves-show-main-table',
  1982. 'reserves-show-main',
  1983.  
  1984. 'creditcards-update-main',
  1985. 'creditcards-update-main-table',
  1986.  
  1987. 'creditcards-verify-main',
  1988. 'creditcards-verify-main-table',
  1989. 'creditcards-verify-main-final',
  1990.  
  1991. 'creditcards-ed-main',
  1992. 'creditcards-ed-main-table',
  1993. 'creditcards-ed-main-final',
  1994.  
  1995. 'creditcards-primary-main',
  1996. 'creditcards-primary-main-table',
  1997. 'creditcards-primary-main-final',
  1998.  
  1999. 'banksacc-main',
  2000. 'banksacc-main-table',
  2001.  
  2002. 'banksacc-add-main',
  2003. 'banksacc-add-main-table',
  2004. 'banksacc-add-main-final',
  2005.  
  2006. 'banksacc-verify-main',
  2007. 'banksacc-verify-main-table',
  2008. 'banksacc-verify-main-final',
  2009.  
  2010. 'banksacc-ed-main',
  2011. 'banksacc-ed-main-table',
  2012. 'banksacc-ed-main-final',
  2013.  
  2014. 'banksacc-primary-main',
  2015. 'banksacc-primary-main-table',
  2016. 'banksacc-primary-main-final',
  2017.  
  2018. 'phones-main',
  2019. 'phones-main-table',
  2020.  
  2021. 'phones-verify-main',
  2022. 'phones-verify-main-table',
  2023.  
  2024.  
  2025. 'phones-add-country-main',
  2026. 'phones-add-main',
  2027. 'phones-add-main-table',
  2028. 'phones-add-main-final',
  2029.  
  2030. 'profile-cpw-main',
  2031. 'profile-cpw-main-table',
  2032.  
  2033. 'profile-closeacc-main',
  2034. 'profile-closeacc-main-table',
  2035.  
  2036. 'profile-mydocs-main',
  2037. 'profile-mydocs-main-table',
  2038.  
  2039. 'profile-secprefs-main',
  2040. 'profile-secprefs-main-table',
  2041.  
  2042. 'profile-mycust-main',
  2043. 'profile-mycust-main-start',
  2044. 'profile-mycust-main-table',
  2045. 'profile-mycust-main-final',
  2046.  
  2047. 'profile-managecust-main',
  2048. 'profile-managecust-main-table',
  2049.  
  2050.  
  2051. 'checkout-singles-main',
  2052. 'checkout-singles-main-table',
  2053. 'checkout-singles-main-confirm',
  2054. 'checkout-singles-main-final',
  2055.  
  2056. 'checkout-user-main',
  2057. 'checkout-user-main-table',
  2058. 'checkout-user-main-confirm',
  2059. 'checkout-user-main-final',
  2060. 'xupdater.checkout-user',
  2061.  
  2062. 'checkout-donations-main',
  2063. 'checkout-donations-main-table',
  2064. 'checkout-donations-main-confirm',
  2065. 'checkout-donations-main-final',
  2066.  
  2067. 'checkout-recurring-main',
  2068. 'checkout-recurring-main-table',
  2069. 'checkout-recurring-main-confirm',
  2070. 'checkout-recurring-main-final',
  2071.  
  2072. 'recurring-show-main',
  2073. 'recurring-show-main-table',
  2074. 'recurring-main',
  2075. 'recurring-main-table',
  2076.  
  2077. 'transaction-details-main',
  2078. 'transaction-details-main-table',
  2079.  
  2080. 'transaction-refund-main',
  2081. 'transaction-refund-main-table',
  2082. 'xupdater.refunds',
  2083.  
  2084. 'transaction-cancel-main',
  2085. 'transaction-cancel-main-table',
  2086.  
  2087. 'show-ads-main',
  2088. 'show-ads-main-table',
  2089.  
  2090. 'mobile-main',
  2091. 'mobile-main-table',
  2092.  
  2093. 'security-check-main',
  2094. 'security-check-main-table',
  2095.  
  2096. 'sentry-main',
  2097. 'sentry-main-table',
  2098.  
  2099. 'mycurrencies-main',
  2100. 'mycurrencies-main-table',
  2101. 'mycurrencies-main-final',
  2102.  
  2103. 'convert-mycurrencies-main',
  2104. 'convert-mycurrencies-main-table',
  2105. 'convert-mycurrencies-main-final',
  2106. 'convert-mycurrencies-main-confirm',
  2107.  
  2108. 'generate-buttons-main',
  2109. 'generate-buttons-main-process',
  2110. 'generate-buttons-single',
  2111. 'generate-buttons-subs',
  2112. 'generate-buttons-donation',
  2113. 'generate-buttons-invoice',
  2114. 'generate-buttons-invoice-confirm',
  2115. 'generate-buttons-invoice-final',
  2116. 'generate-buttons-final',
  2117. 'xupdater.generate-buttons',
  2118.  
  2119. 'my-buttons-main',
  2120. 'my-buttons-main-table',
  2121. 'my-buttons-main-code',
  2122. 'my-buttons-main-edit',
  2123. 'suspended-main',
  2124. 'suspended-main-table',
  2125. 'limited-main',
  2126. 'limited-main-table',
  2127. 'my-messages',
  2128. 'my-messages-table',
  2129. 'my-messages-send',
  2130. 'my-messages-deleted',
  2131.  
  2132. 'profile-preferences-main',
  2133. 'profile-preferences-main-table',
  2134.  
  2135. 'resolution-center',
  2136. 'resolution-center-main',
  2137. 'resolution-center-create',
  2138. 'resolution-center-view',
  2139. 'resolution-center-confirm',
  2140. 'resolution-center-final',
  2141.  
  2142. 'xlogoff.main',
  2143. 'trans-api-main',
  2144. 'trans-api-table',
  2145. 'howto',
  2146. 'list',
  2147. 'list-country',
  2148. 'list-card-types',
  2149. 'list-currency',
  2150. 'list-main-table',
  2151. 'feedback',
  2152. 'feedback-table',
  2153. 'feedback-rate',
  2154. 'feedback-final',
  2155. 'profile-upgrade-main',
  2156. 'profile-upgrade-table',
  2157. 'profile-upgrade-confirm',
  2158. 'profile-upgrade-final',
  2159.  
  2160. 'xupdater.mymessages',
  2161. 'xupdater.send',
  2162. 'xupdater.banks',
  2163. 'xupdater.cards',
  2164. 'xupdater.address',
  2165. 'xupdater.password',
  2166. 'xupdater.phones',
  2167. 'xupdater.show.ads',
  2168. 'xupdater.deposit',
  2169. 'xupdater.withdraw',
  2170. 'xupdater.xtrans.history',
  2171. 'xupdater.merchants.terminal',
  2172. 'xupdater.balance.notify',
  2173. 'xupdater.personal',
  2174. 'xupdater.company',
  2175. 'xupdater.emails',
  2176. 'xupdater.escrow',
  2177. 'xupdater.request',
  2178. 'xupdater.resolution-center',
  2179. 'xupdater');
  2180.  
  2181. $stdactions = array(
  2182. 'xchecker', 'loading', 'similar', 'xsms.api','icheckout','checkout','checkout-instant-main','invoice',
  2183. 'invoice-main-table','invoice-main-final','invoice-main-confirm','register-main','register-main-table','register-pre-table','register-main-accounts','register-main-confirm','register-general-main','register-security-main','register-main-final',
  2184. 'pfs-main','pfs-main-table','pfs-main-confirm','pfs-main-final',
  2185. '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',
  2186. 'job_balance_notify','api','geo_location','geo_bin','api_trans','member','member-table',
  2187. 'xupdater.register', 'xupdater.pfs'
  2188. );
  2189. $atype = '';
  2190.  
  2191. ?>
Add Comment
Please, Sign In to add comment