Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/mobile/ |
<?php define('IN_ECTOUCH', true); require(dirname(__FILE__) . '/include/init.php'); require_once(ROOT_PATH . 'lang/' .$_CFG['lang']. '/user.php'); require_once(ROOT_PATH . 'lang/' .$_CFG['lang']. '/shopping_flow.php'); include_once(ROOT_PATH . 'include/lib_payment.php'); include_once(ROOT_PATH . 'include/lib_order.php'); $user_id = $_SESSION['user_id']; $action = isset($_REQUEST['act']) ? trim($_REQUEST['act']) : 'default'; if( $action == 'order_query' ){ $pay_id = intval($_GET['id']); $pay_code = trim($_GET['pay_code']); include_once(ROOT_PATH .'include/cls_json.php'); $json = new JSON(); $result = array('error'=>0, 'message'=>'', 'content'=>''); if(isset($_SESSION['last_order_query'])) { if(time() - $_SESSION['last_order_query'] < 1) { $result['error'] = 1; $result['message'] = $_LANG['order_query_toofast']; die($json->encode($result)); } } $_SESSION['last_order_query'] = time(); if (empty($pay_id)) { $result['error'] = 1; $result['message'] = $_LANG['invalid_order_sn']; die($json->encode($result)); } $sql = "SELECT * ". " FROM " . $ecs->table('pay_log'). " WHERE log_id = '$pay_id' LIMIT 1"; $row = $db->getRow($sql); if (empty($row)) { $result['error'] = 1; $result['message'] = $_LANG['invalid_order_sn']; die($json->encode($result)); } $order_type = $row['order_type']; $url = 'respond.php?code='.$pay_code; if ( $order_type == 1 ){ $url = 'user.php?act=account_detail'; } if( $row['is_paid'] == 1){ $result['url'] = $url; } //$result['url'] = $url; $result['is_paid'] = $row['is_paid']; die($json->encode($result)); } ?>