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

if (cfr('CAP')) {
    if (isset($_GET['username'])) {
        $login = $_GET['username'];
        $alterconfig = $ubillingConfig->getAlter();
        if ($alterconfig['CAP_ENABLED']) {
            $raskolnikov = new CrimeAndPunishment();
            $raskolnikov->setLogin($login);
            show_window(__('Crime and punishment'), $raskolnikov->renderReport());
            show_window('', web_UserControls($login));
        } else {
            show_error(__('This module disabled'));
        }
    } else {
        show_error(__('Strange exeption'));
    }
} else {
    show_error(__('You cant control this module'));
}
コード例 #2
0
ファイル: index.php プロジェクト: carriercomm/Ubilling
  */
 if ($_GET['action'] == 'cudiscounts') {
     if ($alterconf['CUD_ENABLED']) {
         $discounts = new CumulativeDiscounts();
         $discounts->processDiscounts();
         die('OK:CUDISCOUNTS');
     } else {
         die('ERROR:CUDISCOUNTS_DISABLED');
     }
 }
 /*
  * Crime And Punishment processing
  */
 if ($_GET['action'] == 'crimeandpunishment') {
     if ($alterconf['CAP_ENABLED']) {
         $dostoevsky = new CrimeAndPunishment();
         $dostoevsky->processing();
         die('OK:CRIMEANDPUNISHMENT');
     } else {
         die('ERROR:CRIMEANDPUNISHMENT_DISABLED');
     }
 }
 /*
  * database backup
  */
 if ($_GET['action'] == 'backupdb') {
     if ($alterconf['MYSQLDUMP_PATH']) {
         $backpath = zb_backup_database(true);
     } else {
         $backpath = zb_backup_tables('*', true);
     }