コード例 #1
0
ファイル: index.php プロジェクト: l1ght13aby/Ubilling
<?php

$altCfg = $ubillingConfig->getAlter();
if ($altCfg['DEALWITHIT_ENABLED']) {
    if (cfr('DEALWITHIT')) {
        $dealWithIt = new DealWithIt();
        if (wf_CheckGet(array('username'))) {
            $login = $_GET['username'];
            //creating new task
            if (wf_CheckPost(array('newschedlogin'))) {
                $createResult = $dealWithIt->catchCreateRequest();
                if ($createResult) {
                    show_error($createResult);
                } else {
                    rcms_redirect(DealWithIt::URL_ME . '&username=' . $login);
                }
            }
            //deleting existing task
            if (wf_CheckGet(array('deletetaskid'))) {
                $dealWithIt->deleteTask($_GET['deletetaskid']);
                rcms_redirect(DealWithIt::URL_ME . '&username=' . $login);
            }
            //displaying interface parts
            show_window(__('Create new task'), $dealWithIt->renderCreateForm($login));
            show_window(__('Held jobs for this user'), $dealWithIt->renderTasksList($login));
            show_window('', web_UserControls($login));
        } else {
            if (wf_CheckGet(array('ajinput'))) {
                $dealWithIt->catchAjRequest();
            } else {
                show_error(__('Something went wrong') . ': EX_GET_NO_USERNAME');
コード例 #2
0
ファイル: index.php プロジェクト: carriercomm/Ubilling
         die('ERROR:NO_USERSIDE_API_ENABLED');
     }
 }
 if ($_GET['action'] == 'writevlanmachistory') {
     if ($alterconf['VLANMACHISTORY']) {
         $history = new VlanMacHistory();
         $history->WriteVlanMacData();
         die('OK:WRITING NEW MACS');
     } else {
         die('ERROR:NO_VLAN_MAC_HISTORY ENABLED');
     }
 }
 //deal with it delayed tasks processing
 if ($_GET['action'] == 'dealwithit') {
     if ($alterconf['DEALWITHIT_ENABLED']) {
         $dealWithIt = new DealWithIt();
         $dealWithIt->tasksProcessing();
         die('OK:DEALWITHIT');
     } else {
         die('ERROR:DEALWITHIT DISABLED');
     }
 }
 //Megogo userstats control options
 if ($_GET['action'] == 'mgcontrol') {
     if ($alterconf['MG_ENABLED']) {
         if (wf_CheckGet(array('param', 'tariffid', 'userlogin'))) {
             if ($_GET['param'] == 'subscribe') {
                 $mgIface = new MegogoInterface();
                 $mgSubResult = $mgIface->createSubscribtion($_GET['userlogin'], $_GET['tariffid']);
                 die($mgSubResult);
             }
コード例 #3
0
ファイル: index.php プロジェクト: l1ght13aby/Ubilling
<?php

$altCfg = $ubillingConfig->getAlter();
if ($altCfg['DEALWITHIT_ENABLED']) {
    if (cfr('DEALWITHIT')) {
        $dealWithIt = new DealWithIt();
        show_window(__('Available Held jobs for all users'), $dealWithIt->renderTasksList());
    } else {
        show_error(__('Access denied'));
    }
} else {
    show_error(__('This module is disabled'));
}