• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_request函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_request函数的典型用法代码示例。如果您正苦于以下问题:PHP get_request函数的具体用法?PHP get_request怎么用?PHP get_request使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_request函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: get_litecoin

function get_litecoin($address)
{
    $return = array();
    $data = get_request('http://explorer.litecoin.net/address/' . $address);
    if (!empty($data) && strstr($data, 'Transactions in: ') && strstr($data, 'Received: ')) {
        $return += array('count' => (int) parse($data, 'Transactions in: ', '<br />'), 'amount' => (double) parse($data, 'Received: ', '<br />'));
        return $return;
    }
}
开发者ID:eoobot,项目名称:coinwidget.com,代码行数:9,代码来源:lookup.php


示例2: checkPostRequestParams

 protected function checkPostRequestParams($arParams)
 {
     foreach ($arParams['post'] as $strKey => $strValue) {
         if (get_request($strKey, 'POST') !== $strValue) {
             return false;
         }
     }
     return true;
 }
开发者ID:jarick,项目名称:bx,代码行数:9,代码来源:UrlManager.php


示例3: __construct

 public function __construct($title = null, $action = null, $method = null, $enctype = null, $form_variable = null)
 {
     $method = is_null($method) ? 'post' : $method;
     parent::__construct($method, $action, $enctype);
     $this->setTitle($title);
     $form_variable = is_null($form_variable) ? 'form' : $form_variable;
     $this->addVar($form_variable, get_request($form_variable, 1));
     $this->bottom_items = new CCol(SPACE, 'form_row_last');
     $this->bottom_items->setColSpan(2);
 }
开发者ID:SandipSingh14,项目名称:Zabbix_,代码行数:10,代码来源:class.cformtable.php


示例4: __construct

 public function __construct($action = NULL, $method = 'post', $enctype = NULL)
 {
     parent::__construct('form', 'yes');
     $this->setMethod($method);
     $this->setAction($action);
     $this->setEnctype($enctype);
     $this->setAttribute('accept-charset', 'utf-8');
     if (isset($_COOKIE['zbx_sessionid'])) {
         $this->addVar('sid', substr($_COOKIE['zbx_sessionid'], 16, 16));
     }
     $this->addVar('form_refresh', get_request('form_refresh', 0) + 1);
 }
开发者ID:songyuanjie,项目名称:zabbix-stats,代码行数:12,代码来源:class.cform.php


示例5: get_dogecoin

function get_dogecoin($address)
{
    $return = array();
    $recieved_data = get_request('https://chain.so/api/v2/get_address_received/DOGE/' . $address);
    $tx_data = get_request('https://chain.so/api/v2/get_tx_received/DOGE/' . $address);
    if (!empty($recieved_data) && !empty($tx_data)) {
        $recieved_data = json_decode($recieved_data);
        $tx_data = json_decode($tx_data);
        $return += array('count' => (int) count($tx_data->data->txs), 'amount' => (double) $recieved_data->data->confirmed_received_value);
        return $return;
    }
}
开发者ID:KingNoosh,项目名称:Teknik,代码行数:12,代码来源:lookup.php


示例6: input

function input($type, $name = '', $placeholder = '')
{
    if (strlen($name) == 0) {
        $name = $type;
    }
    if (strlen($placeholder) == 0) {
        $placeholder = $name;
    }
    $value = get_request($name);
    $input = "<input type=\"{$type}\" name=\"{$name}\" placeholder=\"{$placeholder}\" value=\"{$value}\"/>";
    return $input;
}
开发者ID:doodzik,项目名称:homespot_legacy,代码行数:12,代码来源:html_fn.php


示例7: new_global_wiki_variables

/**
 * returns new MW_Variables with prefilled global values
 */
function new_global_wiki_variables()
{
    $req =& get_request("MW_ActionRequest");
    $auth =& get_auth();
    $vars = new MW_Variables(null);
    $vars->set('wiki_name', config('wiki_name'));
    $vars->set('user', $auth->is_logged ? $auth->user : '');
    $vars->set('main_page', MW_PAGE_NAME_MAIN);
    $action = $req->get_action();
    $vars->set('req_action', $action->get_name());
    return $vars;
}
开发者ID:SnowyYANG,项目名称:miniwiki,代码行数:15,代码来源:rendering.php


示例8: get_request_arg

function get_request_arg($search, $type = 'INT')
{
    $arg = NULL;
    $query = get_request();
    foreach ($query as $key => $value) {
        if ($value == $search) {
            if (isset($query[$key + 1])) {
                $arg = $query[$key + 1];
            }
        }
    }
    return $type == 'INT' ? intval($arg) : $arg;
}
开发者ID:ecr007,项目名称:pr0n,代码行数:13,代码来源:function_global.php


示例9: __construct

 public function __construct($title = null, $action = null, $method = null, $enctype = null, $form_variable = null)
 {
     $this->top_items = array();
     $this->center_items = array();
     $this->bottom_items = array();
     $this->tableclass = 'formtable';
     if (null == $method) {
         $method = 'post';
     }
     if (null == $form_variable) {
         $form_variable = 'form';
     }
     parent::__construct($action, $method, $enctype);
     $this->setTitle($title);
     $this->setAlign('center');
     $this->setHelp();
     $this->addVar($form_variable, get_request($form_variable, 1));
     $this->addVar('form_refresh', get_request('form_refresh', 0) + 1);
     $this->bottom_items = new CCol(SPACE, 'form_row_last');
     $this->bottom_items->setColSpan(2);
 }
开发者ID:rennhak,项目名称:zabbix,代码行数:21,代码来源:class.cformtable.php


示例10: login

function login($name, $password, $permanent)
{
    $_SESSION['name'] = $name;
    $_SESSION['password'] = $password;
    error_log($_SESSION['name'] . ' ' . $_SESSION['password']);
    $response = get_request(get_serverurl() . '/users/' . $name, true);
    if ($response["status"] == 200) {
        $response = json_decode($response["response"], true);
        $_SESSION['mail'] = $response['mail'];
        if ($permanent == true) {
            //ToDo: generate a place and remember me cookie
        }
        return true;
    } else {
        if (isset($_SESSION)) {
            session_destroy();
        }
        $_SESSION['name'] = null;
        $_SESSION['password'] = null;
        return false;
    }
}
开发者ID:EHJ-52n,项目名称:enviroCar-www,代码行数:22,代码来源:authentification.php


示例11: get_resource

function get_resource($url)
{
    $resource = '';
    if (!empty($url)) {
        $response = get_request($url);
        if (!function_exists('str_get_html')) {
            require_once dirname(__FILE__) . '/../vendor/simple-html-dom/simple-html-dom.php';
        }
        if (!function_exists('url_to_absolute')) {
            require_once dirname(__FILE__) . '/../vendor/url-to-absolute/url-to-absolute.php';
        }
        $url_parts = parse_url($url);
        //$body = wp_remote_retrieve_body($response);
        $body = $response;
        $html = str_get_html($body);
        foreach ($html->find('a, link') as $element) {
            if (isset($element->href) && $element->href[0] != "#") {
                $element->href = url_to_absolute($url, $element->href);
            }
        }
        foreach ($html->find('img, script') as $element) {
            if (isset($element->src)) {
                $element->src = url_to_absolute($url, $element->src);
            }
        }
        foreach ($html->find('form') as $element) {
            if (isset($element->action)) {
                $element->action = url_to_absolute($url, $element->action);
            } else {
                $element->action = $url;
            }
        }
        $resource = $html->save();
    }
    return $resource;
}
开发者ID:justinputney,项目名称:convertkit-landingpage-anywhere,代码行数:36,代码来源:landingpage.php


示例12: get_request

    $_REQUEST['action'] = -1;
    $_REQUEST['resourcetype'] = -1;
}
$_REQUEST['alias'] = get_request('alias', CProfile::get('web.auditlogs.filter.alias', ''));
$_REQUEST['action'] = get_request('action', CProfile::get('web.auditlogs.filter.action', -1));
$_REQUEST['resourcetype'] = get_request('resourcetype', CProfile::get('web.auditlogs.filter.resourcetype', -1));
if (isset($_REQUEST['filter_set']) || isset($_REQUEST['filter_rst'])) {
    CProfile::update('web.auditlogs.filter.alias', $_REQUEST['alias'], PROFILE_TYPE_STR);
    CProfile::update('web.auditlogs.filter.action', $_REQUEST['action'], PROFILE_TYPE_INT);
    CProfile::update('web.auditlogs.filter.resourcetype', $_REQUEST['resourcetype'], PROFILE_TYPE_INT);
}
/*
 * Display
 */
$effectivePeriod = navigation_bar_calc('web.auditlogs.timeline', 0, true);
$data = array('stime' => get_request('stime'), 'actions' => array(), 'action' => get_request('action'), 'resourcetype' => get_request('resourcetype'), 'alias' => get_request('alias'));
$from = zbxDateToTime($data['stime']);
$till = $from + $effectivePeriod;
// get audit
$sqlWhere = array();
if (!empty($data['alias'])) {
    $sqlWhere['alias'] = ' AND u.alias=' . zbx_dbstr($data['alias']);
}
if ($data['action'] > -1) {
    $sqlWhere['action'] = ' AND a.action=' . $data['action'] . ' ';
}
if ($data['resourcetype'] > -1) {
    $sqlWhere['resourcetype'] = ' AND a.resourcetype=' . $data['resourcetype'] . ' ';
}
$sqlWhere['from'] = ' AND a.clock>' . $from;
$sqlWhere['till'] = ' AND a.clock<' . $till;
开发者ID:quanta-computing,项目名称:debian-packages,代码行数:31,代码来源:auditlogs.php


示例13: array

include_once "include/page_header.php";
$fields = array("mediatypeid" => array(T_ZBX_INT, O_NO, P_SYS, DB_ID, '(isset({form})&&({form}=="update"))'), "type" => array(T_ZBX_INT, O_OPT, NULL, IN(implode(',', array(MEDIA_TYPE_EMAIL, MEDIA_TYPE_EXEC, MEDIA_TYPE_SMS, MEDIA_TYPE_JABBER))), '(isset({save}))'), "description" => array(T_ZBX_STR, O_OPT, NULL, NOT_EMPTY, '(isset({save}))'), "smtp_server" => array(T_ZBX_STR, O_OPT, NULL, NOT_EMPTY, 'isset({type})&&({type}==' . MEDIA_TYPE_EMAIL . ')&&isset({save})'), "smtp_helo" => array(T_ZBX_STR, O_OPT, NULL, NOT_EMPTY, 'isset({type})&&({type}==' . MEDIA_TYPE_EMAIL . ')&&isset({save})'), "smtp_email" => array(T_ZBX_STR, O_OPT, NULL, NOT_EMPTY, 'isset({type})&&({type}==' . MEDIA_TYPE_EMAIL . ')&&isset({save})'), "exec_path" => array(T_ZBX_STR, O_OPT, NULL, NOT_EMPTY, 'isset({type})&&({type}==' . MEDIA_TYPE_EXEC . ')&&isset({save})'), "gsm_modem" => array(T_ZBX_STR, O_OPT, NULL, NOT_EMPTY, 'isset({type})&&({type}==' . MEDIA_TYPE_SMS . ')&&isset({save})'), "username" => array(T_ZBX_STR, O_OPT, NULL, NOT_EMPTY, '(isset({type})&&{type}==' . MEDIA_TYPE_JABBER . ')&&isset({save})'), "password" => array(T_ZBX_STR, O_OPT, NULL, NOT_EMPTY, 'isset({type})&&({type}==' . MEDIA_TYPE_JABBER . ')&&isset({save})'), "save" => array(T_ZBX_STR, O_OPT, P_SYS | P_ACT, NULL, NULL), "delete" => array(T_ZBX_STR, O_OPT, P_SYS | P_ACT, NULL, NULL), "cancel" => array(T_ZBX_STR, O_OPT, P_SYS | P_ACT, NULL, NULL), "form" => array(T_ZBX_STR, O_OPT, P_SYS, NULL, NULL), "form_refresh" => array(T_ZBX_INT, O_OPT, NULL, NULL, NULL));
check_fields($fields);
validate_sort_and_sortorder('mt.description', ZBX_SORT_UP);
/* MEDIATYPE ACTIONS */
$result = 0;
if (isset($_REQUEST["save"])) {
    if (isset($_REQUEST["mediatypeid"])) {
        /* UPDATE */
        /*			$action = AUDIT_ACTION_UPDATE;*/
        $result = update_mediatype($_REQUEST["mediatypeid"], $_REQUEST["type"], $_REQUEST["description"], get_request("smtp_server"), get_request("smtp_helo"), get_request("smtp_email"), get_request("exec_path"), get_request("gsm_modem"), get_request('username'), get_request('password'));
        show_messages($result, S_MEDIA_TYPE_UPDATED, S_MEDIA_TYPE_WAS_NOT_UPDATED);
    } else {
        /* ADD */
        /*			$action = AUDIT_ACTION_ADD;*/
        $result = add_mediatype($_REQUEST["type"], $_REQUEST["description"], get_request("smtp_server"), get_request("smtp_helo"), get_request("smtp_email"), get_request("exec_path"), get_request("gsm_modem"), get_request('username'), get_request('password'));
        show_messages($result, S_ADDED_NEW_MEDIA_TYPE, S_NEW_MEDIA_TYPE_WAS_NOT_ADDED);
    }
    if ($result) {
        /*			add_audit($action,AUDIT_RESOURCE_MEDIA_TYPE,
        				"Media type [".$_REQUEST["description"]."]");
        */
        unset($_REQUEST["form"]);
    }
} elseif (isset($_REQUEST["delete"]) && isset($_REQUEST["mediatypeid"])) {
    /* DELETE */
    /*		$mediatype=get_mediatype_by_mediatypeid($_REQUEST["mediatypeid"]);*/
    $result = delete_mediatype($_REQUEST["mediatypeid"]);
    show_messages($result, S_MEDIA_TYPE_DELETED, S_MEDIA_TYPE_WAS_NOT_DELETED);
    if ($result) {
        /*			add_audit(AUDIT_ACTION_DELETE,AUDIT_RESOURCE_MEDIA_TYPE,
开发者ID:rennhak,项目名称:zabbix,代码行数:31,代码来源:media_types.php


示例14: CFormTable

$dashboard_wdgt->setClass('header');
$dashboard_wdgt->addPageHeader(S_DASHBOARD_CONFIGURATION_BIG, SPACE);
//-------------
// GROUPS
$dashForm = new CFormTable(S_FILTER);
$dashForm->addVar('form_refresh', 1);
$dashForm->setName('dashconf');
$dashForm->setAttribute('id', 'dashform');
if (isset($_REQUEST['form_refresh'])) {
    $filterEnable = get_request('filterEnable', 0);
    $groupids = get_request('groupids', array());
    $groupids = zbx_toHash($groupids);
    $grpswitch = get_request('grpswitch', 0);
    $maintenance = get_request('maintenance', 0);
    $extAck = get_request('extAck', 0);
    $severity = get_request('trgSeverity', array());
    $severity = array_keys($severity);
} else {
    $filterEnable = CProfile::get('web.dashconf.filter.enable', 0);
    $groupids = get_favorites('web.dashconf.groups.groupids');
    $groupids = zbx_objectValues($groupids, 'value');
    $groupids = zbx_toHash($groupids);
    $grpswitch = CProfile::get('web.dashconf.groups.grpswitch', 0);
    $maintenance = CProfile::get('web.dashconf.hosts.maintenance', 1);
    $extAck = CProfile::get('web.dashconf.events.extAck', 0);
    $severity = CProfile::get('web.dashconf.triggers.severity', '0;1;2;3;4;5');
    $severity = zbx_empty($severity) ? array() : explode(';', $severity);
}
$dashForm->addVar('filterEnable', $filterEnable);
if ($filterEnable) {
    $cbFilter = new CSpan(S_ENABLED, 'green underline pointer');
开发者ID:songyuanjie,项目名称:zabbix-stats,代码行数:31,代码来源:dashconf.php


示例15: array

**/
require_once "include/config.inc.php";
require_once "include/items.inc.php";
$page["title"] = "S_QUEUE_BIG";
$page["file"] = "queue.php";
$page['hist_arg'] = array('show');
define('ZBX_PAGE_DO_REFRESH', 1);
include_once "include/page_header.php";
//		VAR			TYPE	OPTIONAL FLAGS	VALIDATION	EXCEPTION
$fields = array("show" => array(T_ZBX_INT, O_OPT, P_SYS, IN("0,1,2"), NULL));
check_fields($fields);
$available_hosts = get_accessible_hosts_by_user($USER_DETAILS, PERM_READ_ONLY, PERM_RES_IDS_ARRAY);
?>

<?php 
$_REQUEST["show"] = get_request("show", 0);
$form = new CForm();
$form->SetMethod('get');
$cmbMode = new CComboBox("show", $_REQUEST["show"], "submit();");
$cmbMode->AddItem(0, S_OVERVIEW);
$cmbMode->AddItem(1, S_OVERVIEW_BY_PROXY);
$cmbMode->AddItem(2, S_DETAILS);
$form->AddItem($cmbMode);
show_table_header(S_QUEUE_OF_ITEMS_TO_BE_UPDATED_BIG, $form);
?>

<?php 
$now = time();
$item_types = array(ITEM_TYPE_ZABBIX, ITEM_TYPE_ZABBIX_ACTIVE, ITEM_TYPE_SNMPV1, ITEM_TYPE_SNMPV2C, ITEM_TYPE_SNMPV3, ITEM_TYPE_SIMPLE, ITEM_TYPE_INTERNAL, ITEM_TYPE_AGGREGATE, ITEM_TYPE_EXTERNAL);
$result = DBselect('SELECT i.itemid,i.nextcheck,i.description,i.key_,i.type,h.host,h.hostid,h.proxy_hostid ' . ' FROM items i,hosts h ' . ' WHERE i.status=' . ITEM_STATUS_ACTIVE . ' AND i.type in (' . implode(',', $item_types) . ') ' . ' AND ((h.status=' . HOST_STATUS_MONITORED . ' AND h.available != ' . HOST_AVAILABLE_FALSE . ') ' . ' OR (h.status=' . HOST_STATUS_MONITORED . ' AND h.available=' . HOST_AVAILABLE_FALSE . ' AND h.disable_until<=' . $now . ')) ' . ' AND i.hostid=h.hostid ' . ' AND i.nextcheck + 5 <' . $now . ' AND i.key_ NOT IN (' . zbx_dbstr('status') . ',' . zbx_dbstr('icmpping') . ',' . zbx_dbstr('icmppingsec') . ',' . zbx_dbstr('zabbix[log]') . ') ' . ' AND i.value_type not in (' . ITEM_VALUE_TYPE_LOG . ') ' . ' AND ' . DBcondition('h.hostid', $available_hosts) . ' AND ' . DBin_node('h.hostid', get_current_nodeid()) . ' ORDER BY i.nextcheck,h.host,i.description,i.key_');
$table = new CTableInfo(S_THE_QUEUE_IS_EMPTY);
开发者ID:rennhak,项目名称:zabbix,代码行数:31,代码来源:queue.php


示例16: define

define('ZBX_PAGE_DO_REFRESH', 1);
require_once dirname(__FILE__) . '/include/page_header.php';
//		VAR				TYPE		OPTIONAL	FLAGS	VALIDATION	EXCEPTION
$fields = array('fullscreen' => array(T_ZBX_INT, O_OPT, P_SYS, IN('0,1'), null), 'groupid' => array(T_ZBX_INT, O_OPT, P_SYS, DB_ID, null), 'hostid' => array(T_ZBX_INT, O_OPT, P_SYS, DB_ID, null));
check_fields($fields);
/*
 * Permissions
 */
if (get_request('groupid') && !API::HostGroup()->isReadable(array($_REQUEST['groupid']))) {
    access_deny();
}
if (get_request('hostid') && !API::Host()->isReadable(array($_REQUEST['hostid']))) {
    access_deny();
}
validate_sort_and_sortorder('name', ZBX_SORT_DOWN);
$options = array('groups' => array('real_hosts' => true, 'with_httptests' => true), 'hosts' => array('with_monitored_items' => true, 'with_httptests' => true), 'hostid' => get_request('hostid', null), 'groupid' => get_request('groupid', null));
$pageFilter = new CPageFilter($options);
$_REQUEST['groupid'] = $pageFilter->groupid;
$_REQUEST['hostid'] = $pageFilter->hostid;
$displayNodes = is_array(get_current_nodeid()) && $pageFilter->groupid == 0 && $pageFilter->hostid == 0;
$r_form = new CForm('get');
$r_form->addVar('fullscreen', $_REQUEST['fullscreen']);
$r_form->addItem(array(_('Group') . SPACE, $pageFilter->getGroupsCB(true)));
$r_form->addItem(array(SPACE . _('Host') . SPACE, $pageFilter->getHostsCB(true)));
$httpmon_wdgt = new CWidget();
$httpmon_wdgt->addPageHeader(_('STATUS OF WEB MONITORING'), get_icon('fullscreen', array('fullscreen' => $_REQUEST['fullscreen'])));
$httpmon_wdgt->addHeader(_('Web scenarios'), $r_form);
$httpmon_wdgt->addHeaderRowNumber();
// TABLE
$table = new CTableInfo(_('No web scenarios found.'));
$table->SetHeader(array($displayNodes ? _('Node') : null, $_REQUEST['hostid'] == 0 ? make_sorting_header(_('Host'), 'hostname') : null, make_sorting_header(_('Name'), 'name'), _('Number of steps'), _('Last check'), _('Status')));
开发者ID:SandipSingh14,项目名称:Zabbix_,代码行数:31,代码来源:httpmon.php


示例17: array

	* Present the only template, if there is only one.

Creating and editing entries use two objects:
* A template object which describes how the template should be rendered (and what values should asked for, etc)
* A page object, which is responsible for actually sending out the HTML to the browser.

So:
* we init a new TemplateRender object
* we init a new Template object
* set the DN or container on the template object
	* If setting the DN, this in turn should read the "old values" from the LDAP server
* If we are not on the first page (ie: 2nd, 3rd, 4th step, etc), we should accept the post values that we have obtained thus far

* Finally submit the update to "update_confirm", or the create to "create", when complete.
*/
require './common.php';
$request = array();
$request['dn'] = get_request('dn', 'REQUEST');
$request['page'] = new TemplateRender($app['server']->getIndex(), get_request('template', 'REQUEST', false, null));
# If we have a DN, then this is to edit the entry.
if ($request['dn']) {
    $app['server']->dnExists($request['dn']) or error(sprintf('%s (%s)', _('No such entry'), pretty_print_dn($request['dn'])), 'error', 'index.php');
    $request['page']->setDN($request['dn']);
    $request['page']->accept();
} else {
    if ($app['server']->isReadOnly()) {
        error(_('You cannot perform updates while server is in read-only mode'), 'error', 'index.php');
    }
    $request['page']->setContainer(get_request('container', 'REQUEST'));
    $request['page']->accept();
}
开发者ID:dannylsl,项目名称:phpLDAPadmin,代码行数:31,代码来源:template_engine.php


示例18: getSelementsInfo

    $mapInfo = getSelementsInfo($map, array('severity_min' => get_request('severity_min')));
    processAreasCoordinates($map, $areas, $mapInfo);
    $allLinks = false;
}
/*
 * Draw map
 */
drawMapConnectors($im, $map, $mapInfo, $allLinks);
if (!isset($_REQUEST['noselements'])) {
    drawMapHighligts($im, $map, $mapInfo);
    drawMapSelements($im, $map, $mapInfo);
}
$expandMacros = get_request('expand_macros', true);
drawMapLabels($im, $map, $mapInfo, $expandMacros);
drawMapLinkLabels($im, $map, $mapInfo, $expandMacros);
if (!isset($_REQUEST['noselements']) && $map['markelements'] == 1) {
    drawMapSelementsMarks($im, $map, $mapInfo);
}
show_messages();
if (get_request('base64image')) {
    ob_start();
    imagepng($im);
    $imageSource = ob_get_contents();
    ob_end_clean();
    $json = new CJSON();
    echo $json->encode(array('result' => base64_encode($imageSource)));
    imagedestroy($im);
} else {
    imageOut($im);
}
require_once dirname(__FILE__) . '/include/page_footer.php';
开发者ID:zubayr,项目名称:zabbix-extras,代码行数:31,代码来源:zbxe-customer-logo.php


示例19: environment

} else {
	app_session_start();
	$_SESSION[APPCONFIG] = $config;
}

if ($uri = get_request('URI','GET'))
	header(sprintf('Location: cmd.php?%s',base64_decode($uri)));

if (! preg_match('/^([0-9]+\.?)+/',app_version())) {
	system_message(array(
		'title'=>_('This is a development version of phpLDAPadmin'),
		'body'=>'This is a development version of phpLDAPadmin! You should <b>NOT</b> use it in a production environment (although we dont think it should do any damage).',
		'type'=>'info','special'=>true));

	if (count($_SESSION[APPCONFIG]->untested()))
		system_message(array(
			'title'=>'Untested configuration paramaters',
			'body'=>sprintf('The following parameters have not been tested. If you have configured these parameters, and they are working as expected, please let the developers know, so that they can be removed from this message.<br/><small>%s</small>',implode(', ',$_SESSION[APPCONFIG]->untested())),
			'type'=>'info','special'=>true));

	$server = $_SESSION[APPCONFIG]->getServer(get_request('server_id','REQUEST'));
	if (count($server->untested()))
		system_message(array(
			'title'=>'Untested server configuration paramaters',
			'body'=>sprintf('The following parameters have not been tested. If you have configured these parameters, and they are working as expected, please let the developers know, so that they can be removed from this message.<br/><small>%s</small>',implode(', ',$server->untested())),
			'type'=>'info','special'=>true));
}

include './cmd.php';
?>
开发者ID:rhertzog,项目名称:lcs,代码行数:30,代码来源:index.php


示例20: clearCookies

    clearCookies($goResult, $_REQUEST['hostid']);
}
/*
 * Display
 */
if (isset($_REQUEST['form'])) {
    $data = getItemFormData(array('is_discovery_rule' => true));
    $data['page_header'] = _('CONFIGURATION OF DISCOVERY RULES');
    // render view
    $itemView = new CView('configuration.item.edit', $data);
    $itemView->render();
    $itemView->show();
} else {
    $data = array('hostid' => get_request('hostid', 0), 'host' => $host, 'showErrorColumn' => $host['status'] != HOST_STATUS_TEMPLATE);
    $sortfield = getPageSortField('name');
    // discoveries
    $data['discoveries'] = API::DiscoveryRule()->get(array('hostids' => $data['hostid'], 'output' => API_OUTPUT_EXTEND, 'editable' => true, 'selectItems' => API_OUTPUT_COUNT, 'selectGraphs' => API_OUTPUT_COUNT, 'selectTriggers' => API_OUTPUT_COUNT, 'selectHostPrototypes' => API_OUTPUT_COUNT, 'sortfield' => $sortfield, 'limit' => $config['search_limit'] + 1));
    $data['discoveries'] = CMacrosResolverHelper::resolveItemNames($data['discoveries']);
    if ($sortfield === 'status') {
        orderItemsByStatus($data['discoveries'], getPageSortOrder());
    } else {
        order_result($data['discoveries'], $sortfield, getPageSortOrder());
    }
    // paging
    $data['paging'] = getPagingLine($data['discoveries'], array('itemid'), array('hostid' => get_request('hostid')));
    // render view
    $discoveryView = new CView('configuration.host.discovery.list', $data);
    $discoveryView->render();
    $discoveryView->show();
}
require_once dirname(__FILE__) . '/include/page_footer.php';
开发者ID:itnihao,项目名称:zatree-2.2,代码行数:31,代码来源:host_discovery.php



注:本文中的get_request函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_request_item函数代码示例发布时间:2022-05-15
下一篇:
PHP get_reputation函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap