Example #1
0
  */
 if ($_GET['action'] == 'watchdog') {
     if ($alterconf['WATCHDOG_ENABLED']) {
         $runWatchDog = new WatchDog();
         $runWatchDog->processTask();
         die('OK:WATCHDOG');
     } else {
         die('ERROR:NO_WATCHDOG_ENABLED');
     }
 }
 /*
  * UKV charge fee processing
  */
 if ($_GET['action'] == 'ukvfeeprocessing') {
     if ($alterconf['UKV_ENABLED']) {
         $ukvApiRun = new UkvSystem();
         $ukvFee = $ukvApiRun->feeChargeAll();
         die('OK:UKVFEEPROCESSING:' . $ukvFee);
     } else {
         die('ERROR:NO_UKV_ENABLED');
     }
 }
 /**
  * Registry of banned sites processing
  */
 if ($_GET['action'] == 'rbs') {
     $object = new RosKomNadzor();
     $object->run();
     die(0);
 }
 /*
Example #2
0
 /**
  * Returns JSON reply for jquery datatables with full list of available connection details
  * 
  * @return void
  */
 public function ajaxGetDataUkv()
 {
     $ukv = new UkvSystem();
     $query = "SELECT * from `ukv_users` WHERE `cableseal` != '' ;";
     $all = simple_queryall($query);
     $result = '{ 
               "aaData": [ ';
     if (!empty($all)) {
         foreach ($all as $io => $each) {
             $profileLink = wf_Link('?module=ukv&users=true&showuser='******'id'], web_profile_icon() . ' ', false);
             $profileLink = str_replace('"', '', $profileLink);
             $profileLink = str_replace("'", '', $profileLink);
             $profileLink = trim($profileLink);
             $userAddress = @$ukv->userGetFullAddress($each['id']);
             $userAddress = str_replace("'", '`', $userAddress);
             $userAddress = str_replace('"', '``', $userAddress);
             $userAddress = trim($userAddress);
             $userRealname = $each['realname'];
             $userRealname = str_replace("'", '`', $userRealname);
             $userRealname = str_replace('"', '``', $userRealname);
             $userRealname = trim($userRealname);
             $act = wf_img('skins/icon_active.gif') . __('Yes');
             //finance check
             if (!$each['active']) {
                 $act = wf_img('skins/icon_inactive.gif') . __('No');
             }
             $act = str_replace('"', '', $act);
             $act = trim($act);
             $result .= '
                 [
                 "' . $profileLink . $userAddress . '",
                 "' . $userRealname . '",
                 "' . $ukv->tariffGetName($each['tariffid']) . '",
                 "' . $act . '",
                 "' . $each['cash'] . '",
                 "' . $each['cableseal'] . '"
                 ],';
         }
     }
     $result = substr($result, 0, -1);
     $result .= '] 
     }';
     die($result);
 }
Example #3
0
<?php

if (cfr('UKV')) {
    $altcfg = $ubillingConfig->getAlter();
    if ($altcfg['UKV_ENABLED']) {
        set_time_limit(0);
        //creating base system object
        $ukv = new UkvSystem();
        /*
         * controller section
         */
        //fast ajax render
        if (wf_CheckGet(array('ajax'))) {
            $ukv->ajaxUsers();
        }
        /*
         * some views here
         */
        //show global management panel
        show_window('', $ukv->panel());
        //renders tariffs list with controls
        if (wf_CheckGet(array('tariffs'))) {
            //tariffs editing
            if (wf_CheckPost(array('edittariff'))) {
                $ukv->tariffSave($_POST['edittariff'], $_POST['edittariffname'], $_POST['edittariffprice']);
                rcms_redirect(UkvSystem::URL_TARIFFS_MGMT);
            }
            //tariffs creation
            if (wf_CheckPost(array('createtariff'))) {
                $ukv->tariffCreate($_POST['createtariffname'], $_POST['createtariffprice']);
                rcms_redirect(UkvSystem::URL_TARIFFS_MGMT);