本文整理汇总了PHP中wf_CheckGet函数的典型用法代码示例。如果您正苦于以下问题:PHP wf_CheckGet函数的具体用法?PHP wf_CheckGet怎么用?PHP wf_CheckGet使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wf_CheckGet函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: im_ContactList
/**
* Return contact list
*
* @return string
*/
function im_ContactList()
{
$me = whoami();
@($employeeNames = unserialize(ts_GetAllEmployeeLoginsCached()));
$alladmins = rcms_scandir(DATA_PATH . "users/");
$activeAdmins = im_GetActiveAdmins();
$result = '';
$rows = '';
if (!empty($alladmins)) {
foreach ($alladmins as $eachadmin) {
if ($eachadmin != $me) {
//need checks for unread messages for each user
if (wf_CheckGet(array('checknew'))) {
$unreadCounter = im_CheckForUnreadMessagesByUser($eachadmin);
if ($unreadCounter != 0) {
$blinker = wf_img('skins/icon_mail.gif');
} else {
$blinker = '';
}
} else {
$blinker = '';
}
if (isset($activeAdmins[$eachadmin])) {
$aliveFlag = web_bool_led(true);
} else {
$aliveFlag = web_bool_led(false);
}
$conatactAvatar = gravatar_ShowAdminAvatar($eachadmin, '32') . ' ';
$adminName = isset($employeeNames[$eachadmin]) ? $employeeNames[$eachadmin] : $eachadmin;
$threadLink = wf_AjaxLink("?module=ubim&showthread=" . $eachadmin, $adminName . ' ' . $blinker, 'threadContainer', false, 'ubimcontact');
//$threadLink.=$blinker;
$cells = wf_TableCell($aliveFlag, '', '', 'valign="center" align="center"');
$cells .= wf_TableCell($conatactAvatar, '35', '', 'valign="center" align="left"');
$cells .= wf_TableCell($threadLink, '', '', 'valign="center" align="left"');
$rows .= wf_TableRow($cells, '');
}
}
$result = wf_TableBody($rows, '100%', '0', 'glamour');
$result .= wf_delimiter() . wf_Link("?module=ubim&avatarcontrol=true", __('Avatar control'), false, 'ubButton');
}
return $result;
}
开发者ID:nightflyza,项目名称:Ubilling,代码行数:47,代码来源:api.ubim.php
示例2: zb_NasAdd
$newnetid = $_POST['networkselect'];
$newnasname = $_POST['newnasname'];
$newnastype = $_POST['newnastype'];
$newbandw = $_POST['newbandw'];
if (!empty($newnasip) and !empty($newnasname)) {
zb_NasAdd($newnetid, $newnasip, $newnasname, $newnastype, $newbandw);
zb_NasConfigSave();
rcms_redirect("?module=nas");
}
}
// Show available NASes
$allnas = zb_NasGetAllData();
// construct needed editor
$titles = array('ID', 'Network', 'IP', 'NAS name', 'NAS type', 'Bandwidthd URL');
$keys = array('id', 'netid', 'nasip', 'nasname', 'nastype', 'bandw');
if (!wf_CheckGet(array('edit'))) {
$altCfg = $ubillingConfig->getAlter();
if ($altCfg['FREERADIUS_ENABLED']) {
$freeRadiusClientsData = web_FreeRadiusListClients();
$radiusControls = wf_modal(web_icon_extended(__('FreeRADIUS NAS parameters')), __('FreeRADIUS NAS parameters'), $freeRadiusClientsData, '', '600', '300');
} else {
$radiusControls = '';
}
show_window(__('Network Access Servers') . ' ' . $radiusControls, web_GridEditorNas($titles, $keys, $allnas, 'nas'));
show_window(__('Add new'), web_NasAddForm());
//vlangen patch start
if ($altCfg['VLANGEN_SUPPORT']) {
$terminator = new VlanTerminator();
if (isset($_GET['DeleteTerminator'])) {
$TermID = $_GET['DeleteTerminator'];
$terminator->delete($TermID);
开发者ID:nightflyza,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例3: catchRequest
/**
* Listens API requests and renders replies for it
*
* @return void
*/
public function catchRequest()
{
if (wf_CheckGet(array('request'))) {
$request = $_GET['request'];
if (isset($this->supportedMethods[$request])) {
switch ($request) {
case 'get_tariff_list':
$this->renderReply($this->getTariffsData());
break;
case 'get_city_list':
$this->renderReply($this->getCitiesData());
break;
case 'get_street_list':
$this->renderReply($this->getStreetsData());
break;
case 'get_house_list':
$this->renderReply($this->getBuildsData());
break;
case 'get_user_additional_data_type_list':
$this->renderReply($this->getCFTypesData());
break;
case 'get_user_state_list':
$this->renderReply($this->getUsersStateList());
break;
case 'get_supported_method_list':
$this->renderReply($this->getMethodsList());
break;
case 'get_api_information':
$this->renderReply($this->getApiInformation());
break;
case 'get_user_group_list':
$this->renderReply($this->getTagTypesList());
break;
case 'get_system_information':
$this->renderReply($this->getSystemInformation());
break;
case 'get_user_list':
$this->renderReply($this->getUsersList());
break;
}
} else {
header('HTTP/1.1 400 Unknown Action"', true, 400);
die('Unknown Action');
}
} else {
header('HTTP/1.1 400 Undefined request', true, 400);
die('Undefined request');
}
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:54,代码来源:api.userside.php
示例4: catchRequest
/**
* Listens API requests and renders replies for it
*
* @return void
*/
public function catchRequest()
{
if (wf_CheckGet(array('request'))) {
$request = $_GET['request'];
if (isset($this->supportedMethods[$request])) {
switch ($request) {
case 'get_user_info':
if (isset($_GET['username'])) {
$this->loadUserInfo($_GET['username']);
$this->renderReply($this->userInfo);
}
break;
case 'get_realnames':
if (isset($_GET['like'])) {
$this->loadRealNames($_GET['like']);
$this->renderReply($this->allRealNames);
}
break;
}
} else {
header('HTTP/1.1 400 Unknown Action"', true, 400);
die('Unknown Action');
}
} else {
header('HTTP/1.1 400 Undefined request', true, 400);
die('Undefined request');
}
}
开发者ID:nightflyza,项目名称:Ubilling,代码行数:33,代码来源:api.tsupport.php
示例5: show_window
}
//reports
if (wf_CheckGet(array('reports'))) {
if (wf_CheckGet(array('ajaxtremains'))) {
$warehouse->{$avidity}['A']['SEENOEVIL']();
}
if (wf_CheckGet(array('calendarops'))) {
show_window(__('Operations in the context of time'), $warehouse->reportCalendarOps());
$warehouse->{$avidity}['M']['FALL']($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&' . 'totalremains=true');
}
if (wf_CheckGet(array('totalremains'))) {
$calendarLink = wf_Link($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&calendarops=true', wf_img('skins/icon_calendar.gif', __('Operations in the context of time')), false, '');
$dateRemainsLink = wf_Link($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&dateremains=true', wf_img('skins/ukv/report.png', __('Date remains')));
show_window(__('The remains in all storages') . ' ' . $calendarLink . ' ' . $dateRemainsLink, $warehouse->reportAllStoragesRemains());
$warehouse->{$avidity}['M']['FALL']();
}
if (wf_CheckGet(array('dateremains'))) {
show_window(__('Date remains'), $warehouse->reportDateRemains());
$warehouse->{$avidity}['M']['FALL']();
}
}
$warehouse->{$avidity}['M']['FRONT']();
} else {
show_error(__('No license key available'));
}
} else {
show_error(__('This module is disabled'));
}
} else {
show_error(__('Permission denied'));
}
开发者ID:carriercomm,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例6: web_SignupGraph
/**
* Shows signup tariffs popularity chart
*
* @return void
*/
function web_SignupGraph()
{
if (!wf_CheckGet(array('month'))) {
$cmonth = curmonth();
} else {
$cmonth = mysql_real_escape_string($_GET['month']);
}
$where = "WHERE `date` LIKE '" . $cmonth . "%'";
$alltariffnames = zb_TariffsGetAll();
$tariffusers = zb_TariffsGetAllUsers();
$allsignups = zb_SignupsGet($where);
$tcount = array();
if (!empty($allsignups)) {
foreach ($alltariffnames as $io => $eachtariff) {
foreach ($allsignups as $ii => $eachsignup) {
if (@$tariffusers[$eachsignup['login']] == $eachtariff['name']) {
@($tcount[$eachtariff['name']] = $tcount[$eachtariff['name']] + 1);
}
}
}
}
$tablecells = wf_TableCell(__('Tariff'));
$tablecells .= wf_TableCell(__('Count'));
$tablecells .= wf_TableCell(__('Visual'));
$tablerows = wf_TableRow($tablecells, 'row1');
if (!empty($tcount)) {
foreach ($tcount as $sigtariff => $eachcount) {
$tablecells = wf_TableCell($sigtariff);
$tablecells .= wf_TableCell($eachcount);
$tablecells .= wf_TableCell(web_bar($eachcount, sizeof($allsignups)), '', '', 'sorttable_customkey="' . $eachcount . '"');
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
$result = wf_TableBody($tablerows, '100%', '0', 'sortable');
show_window(__('Tariffs report'), $result);
}
开发者ID:nightflyza,项目名称:Ubilling,代码行数:41,代码来源:index.php
示例7: show_window
show_window(__('Error'), __('You are not mentally prepared for this'));
}
}
show_window(__('Actions'), $corps->userUnbindForm($_GET['usercallback']));
}
} else {
if (!wf_CheckGet(array('add'))) {
if (method_exists($corps, $beggar['METH']['RENDER'])) {
show_window(__('Available corps'), $corps->{$beggar}['METH']['RENDER']());
}
}
}
}
//user management
if ($route == Corps::URL_USER) {
if (wf_CheckGet(array('username'))) {
$login = mysql_real_escape_string($_GET['username']);
$userCorpCheck = $corps->userIsCorporate($login);
if ($userCorpCheck) {
//enterprise user
$corpsControls = $corps->corpPreview($userCorpCheck);
$corpsControls .= wf_Link(Corps::URL_CORPS_EDIT . $userCorpCheck . '&usercallback=' . $login, web_edit_icon() . ' ' . __('Edit'), true, 'ubButton');
$corpsControls .= wf_delimiter();
$corpsControls .= web_UserControls($login);
show_window(__('Corporate user'), $corpsControls);
} else {
//user is private
if (wf_CheckPost(array('bindsomelogin', 'bindlogintocorpid'))) {
$corps->userBind($_POST['bindsomelogin'], $_POST['bindlogintocorpid']);
rcms_redirect(Corps::URL_USER_MANAGE . $_POST['bindsomelogin']);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例8: zb_PhpConsoleGetTemplate
$rawtemplate = zb_PhpConsoleGetTemplate($_GET['runtpl']);
$runcode = $rawtemplate['body'];
} else {
$runcode = '';
}
$phpinputs .= wf_TextArea('phpq', '', $runcode, true, '80x10');
$phpinputs .= wf_CheckInput('phphightlight', 'Hightlight this PHP code', true, true);
$phpinputs .= wf_Submit('Run this code inside framework');
$phpform = wf_Form('?module=sqlconsole&devconsole=true', 'POST', $phpinputs, 'glamour');
//php console grid assemble
$phpcells = wf_TableCell($phpform, '50%', '', 'valign="top"');
if (wf_CheckGet(array('templateadd'))) {
//show template creation form
$phpcells .= wf_TableCell(web_PhpConsoleTemplateCreateForm(), '50%', '', 'valign="top"');
} else {
if (wf_CheckGet(array('edittemplate'))) {
//show template edit form
$phpcells .= wf_TableCell(web_PhpConsoleTemplateEditForm($_GET['edittemplate']), '50%', '', 'valign="top"');
} else {
//show template list
$phpcells .= wf_TableCell(web_PhpConsoleShowTemplates(), '50%', '', 'valign="top"');
}
}
$phprows = wf_TableRow($phpcells);
$phpgrid = wf_TableBody($phprows, '100%', '0', '');
//show needed form
if (!isset($_GET['devconsole'])) {
show_window(__('SQL Console'), $sqlform);
} else {
show_window(__('Developer Console'), $phpgrid);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例9: rcms_redirect
}
//changing task
if (wf_CheckPost(array('editname'))) {
$interface->changeTask();
rcms_redirect("?module=watchdog");
}
//changing watchdog settings
if (wf_CheckPost(array('changealert'))) {
$interface->saveSettings();
rcms_redirect("?module=watchdog");
}
//show watchdog main control panel
show_window('', $interface->panel());
if (!wf_CheckGet(array('edit'))) {
//show previous detections
if (wf_CheckGet(array('previousalerts'))) {
$interface->loadAllPreviousAlerts();
if (wf_CheckPost(array('previousalertsearch'))) {
//do the search
show_window(__('Search results'), $interface->alertSearchResults($_POST['previousalertsearch']));
} else {
//calendar
show_window(__('Previous alerts'), $interface->renderAlertsCalendar());
}
} else {
//or list of existing tasks
show_window(__('Available Watchdog tasks'), $interface->listAllTasks());
}
} else {
//show task edit form
show_window(__('Edit task'), $interface->editTaskForm($_GET['edit']));
开发者ID:nightflyza,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例10: mysql_real_escape_string
if (!empty($editmodemid)) {
$newmodemuserbind = mysql_real_escape_string($_POST['edituserbind']);
$newmodemnote = mysql_real_escape_string($_POST['editnote']);
simple_update_field('modems', 'userbind', $newmodemuserbind, "WHERE `id`='" . $editmodemid . "'");
simple_update_field('modems', 'note', $newmodemnote, "WHERE `id`='" . $editmodemid . "'");
log_register("DOCSIS MODEM EDIT BIND `" . $newmodemuserbind . "` [" . $editmodemid . "]");
rcms_redirect("?module=docsis&showmodem=" . $editmodemid);
} else {
show_window(__('Error'), __('Strange exeption'));
}
}
//setting modem snmp community
if (wf_CheckPost(array('newmodemcommunity', 'newsnmpwalkpath'))) {
docsis_ModemSnmpSet($_POST['newmodemcommunity']);
docsis_ModemSnmpWalkSet($_POST['newsnmpwalkpath']);
rcms_redirect("?module=docsis");
}
//show controls
docsis_ControlsShow();
//show modems list by default
if (!wf_CheckGet(array('showmodem'))) {
docsis_ModemsList();
} else {
docsis_ModemProfileShow($_GET['showmodem']);
}
} else {
show_window(__('Error'), __('DOCSIS support is not enabled'));
}
} else {
show_error(__('Access denied'));
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例11: tsms_SetSign
if (wf_CheckPost(array('newsign', 'newwap'))) {
tsms_SetSign($_POST['newsign']);
tsms_SetWap($_POST['newwap']);
tsms_SetTz($_POST['newtz']);
rcms_redirect("?module=turbosms");
}
if (wf_CheckPost(array('newexcludelogin'))) {
tsms_ExcludeUserAdd($_POST['newexcludelogin']);
rcms_redirect("?module=turbosms");
}
if (wf_CheckGet(array('excludedelete'))) {
tsms_ExcludeUserDelete($_GET['excludedelete']);
rcms_redirect("?module=turbosms");
}
//template & sending
if (!wf_CheckGet(array('sending'))) {
$availMacro = wf_tag('h3') . __('Available macroses') . wf_tag('h3', true);
$availMacro .= '{LOGIN}' . wf_tag('br');
$availMacro .= '{REALNAME}' . wf_tag('br');
$availMacro .= '{REALNAMETRANS}' . wf_tag('br');
$availMacro .= '{CASH}' . wf_tag('br');
$availMacro .= '{ROUNDCASH}' . wf_tag('br');
$availMacro .= '{CREDIT}' . wf_tag('br');
$availMacro .= '{TARIFF}' . wf_tag('br');
$availMacro .= '{TARIFFPRICE}' . wf_tag('br');
$availMacro .= '{CURDATE}' . wf_tag('br');
$availMacro .= '{PAYID}' . wf_tag('br');
$templateEditForm = wf_TableCell(web_TsmsTemplateEditForm(), '50%', '', 'valign="top"');
$templateEditForm .= wf_TableCell($availMacro, '50%', '', 'valign="top"');
$templateEditForm = wf_TableRow($templateEditForm);
$templateEditForm = wf_TableBody($templateEditForm, '100%', 0, '');
开发者ID:syscenter,项目名称:ubilling-sms,代码行数:31,代码来源:index.php
示例12: curyear
<?php
if (cfr('REPORTFINANCE')) {
if (!wf_CheckGet(array('analytics'))) {
if (!wf_CheckPost(array('yearsel'))) {
$show_year = curyear();
} else {
$show_year = $_POST['yearsel'];
}
$altcfg = $ubillingConfig->getAlter();
$dateSelectorPreset = wf_CheckPost(array('showdatepayments')) ? $_POST['showdatepayments'] : curdate();
$dateinputs = wf_DatePickerPreset('showdatepayments', $dateSelectorPreset);
$dateinputs .= wf_Submit(__('Show'));
$dateform = wf_Form("?module=report_finance", 'POST', $dateinputs, 'glamour');
$yearinputs = wf_YearSelector('yearsel');
$yearinputs .= wf_Submit(__('Show'));
$yearform = wf_Form("?module=report_finance", 'POST', $yearinputs, 'glamour');
$controlcells = wf_TableCell(wf_tag('h3', false, 'title') . __('Year') . wf_tag('h3', true));
$controlcells .= wf_TableCell(wf_tag('h3', false, 'title') . __('Payments by date') . wf_tag('h3', true));
$controlcells .= wf_TableCell(wf_tag('h3', false, 'title') . __('Payment search') . wf_tag('h3', true));
$controlcells .= wf_TableCell(wf_tag('h3', false, 'title') . __('Analytics') . wf_tag('h3', true));
$controlcells .= wf_TableCell(wf_tag('h3', false, 'title') . __('ARPU') . wf_tag('h3', true));
if ($altcfg['AGENTS_ASSIGN'] == '2') {
$controlcells .= wf_TableCell(wf_tag('h3', false, 'title') . __('Agent payments') . wf_tag('h3', true));
}
$controlrows = wf_TableRow($controlcells);
$controlcells = wf_TableCell($yearform);
$controlcells .= wf_TableCell($dateform);
$controlcells .= wf_TableCell(wf_Link("?module=payfind", web_icon_search() . ' ' . __('Find'), false, 'ubButton'));
$controlcells .= wf_TableCell(wf_Link("?module=report_finance&analytics=true", wf_img('skins/icon_stats.gif') . ' ' . __('Show'), false, 'ubButton'));
$controlcells .= wf_TableCell(wf_Link("?module=report_arpu", wf_img('skins/ukv/report.png') . ' ' . __('Show'), false, 'ubButton'));
开发者ID:nightflyza,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例13: sm_MapDrawSwitches
}
}
}
if (wf_CheckGet(array('layers'))) {
$layers = $_GET['layers'];
//switches layer
if (ispos($layers, 'sw')) {
$placemarks .= sm_MapDrawSwitches();
}
//switches uplinks layer
if (ispos($layers, 'ul')) {
$placemarks .= sm_MapDrawSwitchUplinks();
}
//builds layer
if (ispos($layers, 'bs')) {
$placemarks .= um_MapDrawBuilds();
}
}
if (wf_CheckGet(array('mapedit', 'showmap'))) {
$editor = $custmaps->mapLocationEditor();
} else {
$editor = '';
}
show_window($custmaps->mapGetName($mapId), $custmaps->mapInit($placemarks, $editor));
}
} else {
show_error(__('This module is disabled'));
}
} else {
show_error(__('Access denied'));
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例14: rcms_redirect
}
//subscriptions manual control
if (wf_CheckGet(array('subview'))) {
$subId = $_GET['subid'];
if (wf_CheckGet(array('subid', 'maction'))) {
$mactionResult = $interface->catchManualAction();
if (!$mactionResult) {
rcms_redirect($interface::URL_ME . '&' . $interface::URL_SUBVIEW . '&subid=' . $subId);
} else {
show_window(__('Something went wrong'), $mactionResult);
}
}
show_window(__('Edit'), $interface->renderSubManagerForm($subId));
show_window('', wf_Link($interface::URL_ME . '&' . $interface::URL_SUBS, __('Back'), false, 'ubButton'));
}
//subscriptions report
if (wf_CheckGet(array('reports'))) {
if ($altCfg['MG_SPREAD']) {
//daily accounting report
show_window(__('Subscriptions report'), $interface->renderSubscribtionsReportDaily());
} else {
//montly accounting report
show_window(__('Subscriptions report'), $interface->renderSubscribtionsReportMonthly());
}
}
} else {
show_error(__('You cant control this module'));
}
} else {
show_error(__('This module disabled'));
}
开发者ID:carriercomm,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例15: header
header('Content-Disposition: attachment; filename=userbase.csv');
echo $result;
die;
}
}
// show reports list
if (cfr('REPORTMASTERADM')) {
$export_link = wf_Link('?module=reportmaster&exportuserbase=excel', wf_img("skins/excel.gif", __('Export userbase')), false);
} else {
$export_link = '';
}
$newreport_link = wf_Link('?module=reportmaster&add=true', web_add_icon(), false);
$action_links = ' ' . $export_link . ' ' . $newreport_link;
show_window(__('Available reports') . $action_links, web_ReportMasterShowReportsList());
//userbase exporting
if (wf_CheckGet(array('exportuserbase'))) {
zb_RMExportUserbaseCsv();
}
//create new report
if (isset($_POST['newreportname']) and isset($_POST['newsqlquery']) and isset($_POST['newdatakeys']) and isset($_POST['newfieldnames'])) {
if (cfr('REPORTMASTERADM')) {
zb_RMCreateReport($_POST['newreportname'], $_POST['newsqlquery'], $_POST['newdatakeys'], $_POST['newfieldnames'], $_POST['newaddr'], $_POST['newrnames'], $_POST['newrowcount']);
rcms_redirect("?module=reportmaster");
} else {
show_error(__('You cant control this module'));
}
}
//delete existing report
if (isset($_GET['delete'])) {
if (cfr('REPORTMASTERADM')) {
zb_RMDeleteReport($_GET['delete']);
开发者ID:nightflyza,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例16: web_SwitchesShow
/**
* Returns list of all available switches devices with its controls. Also catches ajaxping and forcereping events.
*
* @return string
*/
function web_SwitchesShow()
{
global $ubillingConfig;
$alterconf = $ubillingConfig->getAlter();
$allswitches = zb_SwitchesGetAll();
$modelnames = zb_SwitchModelsGetAllTag();
$currenttime = time();
$reping_timeout = $alterconf['SW_PINGTIMEOUT'];
$deathTime = zb_SwitchesGetAllDeathTime();
//counters
$countTotal = 0;
$countAlive = 0;
$countDead = 0;
$countNp = 0;
$countOnMap = 0;
$countSwpoll = 0;
$countMtsigmon = 0;
$countOlt = 0;
$countLinked = 0;
//non realtime switches pinging
$last_pingtime = zb_StorageGet('SWPINGTIME');
if (!$last_pingtime) {
zb_SwitchesRepingAll();
zb_StorageSet('SWPINGTIME', $currenttime);
$last_pingtime = $currenttime;
} else {
if ($currenttime > $last_pingtime + $reping_timeout * 60) {
// normal timeout reping sub here
zb_SwitchesRepingAll();
zb_StorageSet('SWPINGTIME', $currenttime);
}
}
//force total reping and update cache
if (wf_CheckGet(array('forcereping'))) {
zb_SwitchesRepingAll();
zb_StorageSet('SWPINGTIME', $currenttime);
if (wf_CheckGet(array('ajaxping'))) {
$dead_raw = zb_StorageGet('SWDEAD');
$deathTime = zb_SwitchesGetAllDeathTime();
$deadarr = array();
$ajaxResult = '';
if ($dead_raw) {
$deadarr = unserialize($dead_raw);
if (!empty($deadarr)) {
//there is some dead switches
$deadcount = sizeof($deadarr);
if ($alterconf['SWYMAP_ENABLED']) {
//getting geodata
$switchesGeo = zb_SwitchesGetAllGeo();
}
//ajax container
$ajaxResult .= wf_tag('div', false, '', 'id="switchping"');
foreach ($deadarr as $ip => $switch) {
if ($alterconf['SWYMAP_ENABLED']) {
if (isset($switchesGeo[$ip])) {
if (!empty($switchesGeo[$ip])) {
$devicefind = wf_Link('?module=switchmap&finddevice=' . $switchesGeo[$ip], wf_img('skins/icon_search_small.gif', __('Find on map'))) . ' ';
} else {
$devicefind = '';
}
} else {
$devicefind = '';
}
} else {
$devicefind = '';
}
//check morgue records for death time
if (isset($deathTime[$ip])) {
$deathClock = wf_img('skins/clock.png', __('Switch dead since') . ' ' . $deathTime[$ip]) . ' ';
} else {
$deathClock = '';
}
//switch location link
$switchLocator = wf_Link('?module=switches&gotoswitchbyip=' . $ip, web_edit_icon(__('Go to switch')));
//add switch as dead
$ajaxResult .= $devicefind . ' ' . $switchLocator . ' ' . $deathClock . $ip . ' - ' . $switch . '<br>';
}
} else {
$ajaxResult = __('Switches are okay, everything is fine - I guarantee');
}
}
$ajaxResult .= wf_delimiter() . __('Cache state at time') . ': ' . date("H:i:s");
print $ajaxResult;
//darkvoid update
$notifyArea = new DarkVoid();
$notifyArea->flushCache();
die;
}
}
//load dead switches cache
$dead_switches_raw = zb_StorageGet('SWDEAD');
if (!$dead_switches_raw) {
$dead_switches = array();
} else {
$dead_switches = unserialize($dead_switches_raw);
//.........这里部分代码省略.........
开发者ID:carriercomm,项目名称:Ubilling,代码行数:101,代码来源:api.switches.php
示例17: deleteSms
}
/**
* Deletes SMS from local queue
*
* @param string $filename Existing sms filename
*
* @return int 0 - ok
*/
public function deleteSms($filename)
{
$result = $this->smsObj->deleteSms($filename);
return $result;
}
}
$tsmsQueue = new TSMSQueue();
if (wf_CheckGet(array('deletesms'))) {
$deletionResult = $tsmsQueue->deleteSms($_GET['deletesms']);
if ($deletionResult == 0) {
$darkVoid = new DarkVoid();
$darkVoid->flushCache();
rcms_redirect('?module=tsmsqueue');
} else {
if ($deletionResult == 2) {
show_error(__('Not existing item'));
}
if ($deletionResult == 1) {
show_error(__('Permission denied'));
}
}
}
show_window(__('SMS in queue'), $tsmsQueue->render());
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例18: catv_GlobalControlsShow
<?php
// check for right of current admin on this module
if (cfr('CATVSTATS')) {
catv_GlobalControlsShow();
if (wf_CheckGet(array('userid'))) {
$userid = vf($_GET['userid'], 3);
$userdata = catv_UserGetData($userid);
$realname = $userdata['realname'];
$address = $userdata['street'] . ' ' . $userdata['build'] . '/' . $userdata['apt'];
//target year selection
$yearforminputs = wf_YearSelector('yearselect', 'Year', false);
$yearforminputs .= ' ';
$yearforminputs .= wf_Submit('Show');
$yearform = wf_Form('', 'POST', $yearforminputs, 'glamour', '');
show_window($address . ' ' . $realname, $yearform . '<div style="clear: both;"></div>');
if (wf_CheckPost(array('yearselect'))) {
$target_year = $_POST['yearselect'];
} else {
$target_year = curyear();
}
catv_UserStatsByYear($userid, $target_year);
catv_DecoderShowAllChanges($userid);
catv_ActivityShowAll($userid);
catv_ProfileBack($userid);
}
} else {
show_error(__('You cant control this module'));
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:29,代码来源:index.php
示例19: wf_Link
if (isset($_GET['switchdelete'])) {
$swlinks = '';
$swlinks .= wf_Link('?module=switches&edit=' . $_GET['switchdelete'], web_edit_icon() . ' ' . __('Edit'), false, 'ubButton') . ' ';
$swlinks .= wf_JSAlertStyled('?module=switches&switchdelete=' . $_GET['switchdelete'] . '&forcedel=true', web_delete_icon() . ' ' . __('Force deletion'), __('Removing this may lead to irreparable results'), 'ubButton');
}
show_window('', $swlinks);
if (!isset($_GET['timemachine'])) {
if (!isset($_GET['switchdelete'])) {
//display switches list
show_window(__('Available switches'), web_SwitchesShow());
}
} else {
//show dead switch time machine
if (!isset($_GET['snapshot'])) {
//cleanup subroutine
if (wf_CheckGet(array('flushalldead'))) {
ub_SwitchesTimeMachineCleanup();
rcms_redirect("?module=switches&timemachine=true");
}
//calendar view time machine
if (!wf_CheckPost(array('switchdeadlogsearch'))) {
$deadTimeMachine = ub_JGetSwitchDeadLog();
$timeMachine = wf_FullCalendar($deadTimeMachine);
} else {
//search processing
$timeMachine = ub_SwitchesTimeMachineSearch($_POST['switchdeadlogsearch']);
}
$timeMachineCleanupControl = wf_JSAlert('?module=switches&timemachine=true&flushalldead=true', wf_img('skins/icon_cleanup.png', __('Cleanup')), __('Are you serious'));
//here some searchform
$timeMachineSearchForm = web_SwitchTimeMachineSearchForm() . wf_tag('br');
show_window(__('Dead switches time machine') . ' ' . $timeMachineCleanupControl, $timeMachineSearchForm . $timeMachine);
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例20:
$photoStorage->catchWebcamUpload();
}
//catch file upload request
if (wf_CheckGet(array('uploadfilephoto'))) {
$photoStorage->catchFileUpload();
}
//catch file download
if (wf_CheckGet(array('download'))) {
$photoStorage->catchDownloadImage($_GET['download']);
}
//catch file deletion event
if (wf_CheckGet(array('delete'))) {
$photoStorage->catchDeleteImage($_GET['delete']);
}
//show webcam snapshot form
if (wf_CheckGet(array('mode'))) {
$modeSet = $_GET['mode'];
//webcamera snapshot
if ($modeSet == 'cam') {
show_window(__('Webcamera snapshot'), $photoStorage->renderWebcamForm(false));
}
//webcamera cropped snapshot
if ($modeSet == 'avacam') {
show_window(__('Webcamera snapshot') . ' - ' . __('avatar'), $photoStorage->renderWebcamForm(true));
}
//just file upload interface
if ($modeSet == 'loader') {
show_window(__('Upload images'), $photoStorage->renderUploadForm());
}
//listing images for some object
if ($modeSet == 'list') {
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
注:本文中的wf_CheckGet函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论