Up to date code

This commit is contained in:
2022-07-24 01:04:50 -04:00
parent fe6f130cfa
commit 1f4933c091
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -7,8 +7,11 @@ class backend {
var $wrenchboard;
function __construct() {
$this->USER = (array_key_exists('PWD',$_SERVER) && is_dir($_SERVER['PWD'])) ? $_SERVER['PWD'] : $_SERVER['SCRIPT_FILENAME'];
if (array_key_exists('PWD',$_SERVER) && is_dir($_SERVER['PWD'])) {
$this->USER = $_SERVER['PWD'];
} else {
$this->USER = $_SERVER['SCRIPT_FILENAME'];
}
$this->USER = str_replace('/home', '', $this->USER);
$this->USER = strtok($this->USER, '/');
if ($this->USER == 'opt') {
+1
View File
@@ -7,6 +7,7 @@ $out = array();
$in['action'] = WRB_JOB_CRONJOB;
$in['call_action'] = WRB_CRONJOB_OFFER_REFUND_ALERT;
$in['one_limit'] = 1;
$out = array();
$wrb->wrenchboard_api($in,$out);
print_r($out);