本文整理汇总了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");
示例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;");
示例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>
示例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);