本文整理汇总了PHP中wf_CheckGet函数的典型用法代码示例。如果您正苦于以下问题:PHP wf_CheckGet函数的具体用法?PHP wf_CheckGet怎么用?PHP wf_CheckGet使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wf_CheckGet函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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);
示例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');
}
}
示例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');
}
}
示例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'));
}
示例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);
}
示例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']);
}
示例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);
}
示例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']));
示例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'));
}
示例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, '');
示例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'));
示例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'));
}
示例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'));
}
示例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']);