當前位置: 首頁>>代碼示例>>PHP>>正文


PHP xajax::setRequestURI方法代碼示例

本文整理匯總了PHP中xajax::setRequestURI方法的典型用法代碼示例。如果您正苦於以下問題:PHP xajax::setRequestURI方法的具體用法?PHP xajax::setRequestURI怎麽用?PHP xajax::setRequestURI使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在xajax的用法示例。


在下文中一共展示了xajax::setRequestURI方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: xajax

 *
 * @author SteamFriends Development Team
 * @version 1.0.0
 * @copyright SourceBans (C)2007 SteamFriends.com.  All rights reserved.
 * @package SourceBans
 * @link http://www.sourcebans.net
 *
 * @version $Id: sb-callback.php 140 2008-08-31 15:30:35Z peace-maker
 * =============================================================================
 */
require_once 'xajax.inc.php';
include_once 'system-functions.php';
include_once 'user-functions.php';
$xajax = new xajax();
//$xajax->debugOn();
$xajax->setRequestURI(XAJAX_REQUEST_URI);
global $userbank;
if (isset($_COOKIE['aid'], $_COOKIE['password']) && $userbank->CheckLogin($_COOKIE['password'], $_COOKIE['aid'])) {
    $xajax->registerFunction("AddMod");
    $xajax->registerFunction("RemoveMod");
    $xajax->registerFunction("AddGroup");
    $xajax->registerFunction("RemoveGroup");
    $xajax->registerFunction("RemoveAdmin");
    $xajax->registerFunction("RemoveSubmission");
    $xajax->registerFunction("RemoveServer");
    $xajax->registerFunction("UpdateGroupPermissions");
    $xajax->registerFunction("UpdateAdminPermissions");
    $xajax->registerFunction("AddAdmin");
    $xajax->registerFunction("SetupEditServer");
    $xajax->registerFunction("AddServerGroupName");
    $xajax->registerFunction("AddServer");
開發者ID:CodingDK,項目名稱:SourceBans-Fork,代碼行數:31,代碼來源:sb-callback.php

示例2: LoadServers

 * @copyright SourceBans (C)2007 SteamFriends.com.  All rights reserved.
 * @package SourceBans
 * @link http://www.sourcebans.net
 * 
 * @version $Id$
 * =============================================================================
 */
include_once '../init.php';
if (!$userbank->HasAccess(ADMIN_OWNER | ADMIN_ADD_BAN)) {
    echo "No Access";
    die;
}
require_once INCLUDES_PATH . '/xajax.inc.php';
$xajax = new xajax();
//$xajax->debugOn();
$xajax->setRequestURI("./admin.kickit.php");
$xajax->registerFunction("KickPlayer");
$xajax->registerFunction("LoadServers");
$xajax->processRequests();
$username = $userbank->GetProperty("user");
function LoadServers($check, $type)
{
    $objResponse = new xajaxResponse();
    global $userbank, $username;
    if (!$userbank->HasAccess(ADMIN_OWNER | ADMIN_ADD_BAN)) {
        $objResponse->redirect("index.php?p=login&m=no_access", 0);
        $log = new CSystemLog("w", "Hacking Attempt", $username . " tried to use kickit, but doesnt have access.");
        return $objResponse;
    }
    $id = 0;
    $servers = $GLOBALS['db']->Execute("SELECT sid, rcon FROM " . DB_PREFIX . "_servers WHERE enabled = 1 ORDER BY modid, sid;");
開發者ID:mvandorp,項目名稱:sourcebansv1,代碼行數:31,代碼來源:admin.kickit.php

示例3: array

            } else {
                $resp->addRedirect($_SERVER['SCRIPT_NAME'] . "?id={$id}");
            }
        } else {
            $sql = "UPDATE bp_process SET name=?, description=? WHERE id=?";
            $params = array($form_data['bp_name'], $form_data['bp_desc'], $id);
            if (!$conn->Execute($sql, $params)) {
                $resp->AddAssign("form_errors", "innerHTML", $conn->ErrorMsg());
            } else {
                $resp->addRedirect("./bp_list.php");
            }
        }
    }
    return $resp;
}
$xajax->setRequestURI($_SERVER["REQUEST_URI"]);
$xajax->processRequests();
//-------------- End Ajax -------------------------//
if ($id != 0) {
    $sql = "SELECT name, description\n            FROM bp_process\n            WHERE id = ?";
    $proc_data = $conn->GetRow($sql, array($id));
    if ($proc_data === false) {
        die($conn->ErrorMsg());
    }
} else {
    $proc_data['name'] = '';
    $proc_data['description'] = '';
}
?>
<html>
<head>
開發者ID:jhbsz,項目名稱:ossimTest,代碼行數:31,代碼來源:bp_edit.php

示例4: xajax

            $show_owndomain = false;
        }
        if (!$show_tlds && !$show_subdomains && !$show_owndomain) {
            $BL->customfields->setOrder("customfields_index");
            $custom_fields = $BL->customfields->getAvailable();
            $cmd = "step3";
        }
        break;
    default:
        $special_display = $BL->specialAutoDescription();
        $BL->groups->setOrder("group_index");
        $groups = $BL->groups->getAvailable();
        break;
}
$xajax = new xajax();
$xajax->setRequestURI($BL->conf['path_url'] . "/");
if (ALP_DEBUG) {
    $xajax->debugOn();
} else {
    $xajax->debugOff();
}
if (ini_get('output_buffering') == NULL || ini_get('output_buffering') == 'Off') {
    $xajax->cleanBufferOn();
} else {
    $xajax->cleanBufferOff();
}
$xajax->errorHandlerOff();
$xajax->statusMessagesOn();
$xajax->waitCursorOn();
$xajax->exitAllowedOn();
$xajax->setCharEncoding(CHARSET);
開發者ID:jwest00724,項目名稱:AccountLab-Plus,代碼行數:31,代碼來源:index.php


注:本文中的xajax::setRequestURI方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。