コード例 #1
0
ファイル: index.php プロジェクト: l1ght13aby/Ubilling
            //creating new task
            if (wf_CheckPost(array('newschedlogin'))) {
                $createResult = $dealWithIt->catchCreateRequest();
                if ($createResult) {
                    show_error($createResult);
                } else {
                    rcms_redirect(DealWithIt::URL_ME . '&username='******'deletetaskid'))) {
                $dealWithIt->deleteTask($_GET['deletetaskid']);
                rcms_redirect(DealWithIt::URL_ME . '&username='******'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');
            }
        }
    } else {
        show_error(__('Access denied'));
    }
} else {
    show_error(__('This module is disabled'));
}
コード例 #2
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'));
}