Up to date code
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user