本文整理汇总了PHP中UL_Error函数的典型用法代码示例。如果您正苦于以下问题:PHP UL_Error函数的具体用法?PHP UL_Error怎么用?PHP UL_Error使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了UL_Error函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ob_start
-------------------------------------------------------------- */
ob_start();
require("include.php");
$NATS->Start();
// Timeskip check - means this page skips timecheck/reset if site.monitor.keepalive is 0
if ($NATS->Cfg->Get("site.monitor.keepalive",1)==0) $timeskip=true;
else $timeskip=false;
if (!$NATS_Session->Check($NATS->DB,$timeskip))
{
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit();
}
if ($NATS_Session->userlevel<1) UL_Error("View Monitor");
if (isset($_REQUEST['style']))
{
$style=$_REQUEST['style'];
setcookie("fn_monitorstyle",$style);
}
else if (isset($_COOKIE['fn_monitorstyle']))
{
$style=$_COOKIE['fn_monitorstyle'];
}
else $style="standard";
if ($style=="") $style="standard";
Screen_Header("Live Monitor",1,1,"<meta http-equiv=\"refresh\" content=\"60\">");
示例2: ob_start
You should have received a copy of the GNU General Public License
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB)) {
$p = $_SERVER['HTTPS'] == "on" ? "https" : "http";
$url = $p . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header("Location: ./?login_msg=Invalid+Or+Expired+Session&url=" . urlencode($url));
exit;
}
if ($NATS_Session->userlevel < 1) {
UL_Error($NATS->Lang->Item("viewing.node"));
}
ob_end_flush();
Screen_Header($NATS->Lang->Item("viewing.node") . " " . $_REQUEST['nodeid'], 1);
?>
<br>
<?php
//echo "<b class=\"minortitle\">Node: ".$_REQUEST['nodeid']."</b><br><br>";
echo "<table border=0><tr><td align=left valign=top>";
$q = "SELECT * FROM fnnode WHERE nodeid=\"" . ss($_REQUEST['nodeid']) . "\" LIMIT 0,1";
$r = $NATS->DB->Query($q);
if (!($row = $NATS->DB->Fetch_Array($r))) {
echo $NATS->Lang->Item("no.node") . "<br><br>";
Screen_Footer();
exit;
}
示例3: ob_start
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB)) {
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit;
}
if ($NATS_Session->userlevel < 5) {
UL_Error($NATS->Lang->Item("edit.nodeside.test"));
}
if (isset($_REQUEST['action'])) {
switch ($_REQUEST['action']) {
case "enable":
$q = "UPDATE fnnstest SET testenabled=1 WHERE nstestid=" . ss($_REQUEST['nstestid']);
//echo $q;
$NATS->DB->Query($q);
//exit();
header("Location: node.edit.php?nodeid=" . $_REQUEST['nodeid']);
exit;
case "disable":
$q = "UPDATE fnnstest SET testenabled=0 WHERE nstestid=" . ss($_REQUEST['nstestid']);
//echo $q;
$NATS->DB->Query($q);
//exit();
示例4: ob_start
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Foobar. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB)) {
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit;
}
if ($NATS_Session->userlevel < 1) {
UL_Error("View Group");
}
ob_end_flush();
Screen_Header("Viewing Group", 1);
?>
<br>
<?php
$q = "SELECT * FROM fngroup WHERE groupid=\"" . ss($_REQUEST['groupid']) . "\" LIMIT 0,1";
$r = $NATS->DB->Query($q);
if (!($row = $NATS->DB->Fetch_Array($r))) {
echo "No such group.<br><br>";
Screen_Footer();
exit;
}
$NATS->DB->Free($r);
echo "<table border=0><tr><td align=left valign=top>";
示例5: ob_start
You should have received a copy of the GNU General Public License
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require("include.php");
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB))
{
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit();
}
if ($NATS_Session->userlevel<9) UL_Error("Admin SQL Interface");
if ($NATS->Cfg->Get("site.enable.adminsql",0)!=1)
{
header("Location: main.php?message=Admin+SQL+Console+Disabled");
exit();
}
ob_end_flush();
Screen_Header("Admin SQL Interface",1);
echo "<b>WARNING: This is advanced and unprotected functionality - proceed with caution!</b><br><br>";
echo "<form action=admin.sql.php method=post>";
echo "<input type=hidden name=action value=sql>";
if (isset($_REQUEST['query'])) $t=htmlspecialchars($_REQUEST['query']);
示例6: ob_start
You should have received a copy of the GNU General Public License
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require("include.php");
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB))
{
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit();
}
if ($NATS_Session->userlevel<5) UL_Error("Action Group");
$msg="";
switch($_REQUEST['action'])
{
case "delete":
if (!isset($_REQUEST['confirm']))
{
$go="confirm.php?action=Delete+Group&back=";
$go.=urlencode("group.action.php?action=delete&groupid=".$_REQUEST['groupid']."&confirm=1");
header("Location: ".$go);
exit();
}
// delete it and shit!
// group + links + lt results
示例7: ob_start
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB)) {
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit;
}
if ($NATS_Session->userlevel < 5) {
UL_Error("Action Group");
}
$msg = "";
switch ($_REQUEST['action']) {
case "delete":
if (!isset($_REQUEST['confirm'])) {
$go = "confirm.php?action=Delete+Group&back=";
$go .= urlencode("group.action.php?action=delete&groupid=" . $_REQUEST['groupid'] . "&confirm=1");
header("Location: " . $go);
exit;
}
// delete it and shit!
// group + links + lt results
$q = "DELETE FROM fngroup WHERE groupid=" . ss($_REQUEST['groupid']);
$NATS->DB->Query($q);
$q = "DELETE FROM fngrouplink WHERE groupid=" . ss($_REQUEST['groupid']);
示例8: ob_start
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB)) {
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit;
}
if ($NATS_Session->userlevel < 5) {
UL_Error($NATS->Lang->Item("group.editor"));
}
ob_end_flush();
Screen_Header($NATS->Lang->Item("group.editor"), 1, 1, "", "main", "groups");
echo "\n<script type=\"text/javascript\">\n";
echo "var iconDivText='";
ShowIcons();
echo "';\n\n";
echo "function showIcons()\n";
echo "{\n";
echo "document.getElementById('iconDiv').innerHTML='<br><br>'+iconDivText+'<br><br>';\n";
echo "}\n";
echo "</script>\n\n";
?>
<br>
<?php
示例9: ob_start
You should have received a copy of the GNU General Public License
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require("include.php");
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB))
{
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit();
}
if ($NATS_Session->userlevel<5) UL_Error("Edit Local Test");
ob_end_flush();
Screen_Header("Local Test Editor",1,1,"","main","nodes");
?>
<br>
<?php
$q="SELECT * FROM fnlocaltest WHERE localtestid=".ss($_REQUEST['localtestid'])." LIMIT 0,1";
$r=$NATS->DB->Query($q);
if (!$row=$NATS->DB->Fetch_Array($r))
{
echo "No such test!<br><br>";
Screen_Footer();
exit();
}
if ($row['testname']!="") $nicename=$row['testname'];
else $nicename=lText($row['testtype']);
示例10: UL_Error
$mode = $_REQUEST['mode'];
} else {
$mode = "";
}
if ($mode == "savereport") {
if ($NATS_Session->userlevel < 5) {
UL_Error("Save Report");
}
$q = "INSERT INTO fnreport(reportname,reporttests) VALUES(\"" . ss($_REQUEST['reportname']) . "\",\"" . ss($_REQUEST['reporttests']) . "\")";
$NATS->DB->Query($q);
header("Location: main.php?mode=views&message=Saved+Report");
exit;
}
if ($mode == "delete") {
if ($NATS_Session->userlevel < 5) {
UL_Error("Delete Report");
}
if (!isset($_REQUEST['confirmed'])) {
$back = "report.php?mode=delete&reportid=" . $_REQUEST['reportid'] . "&confirmed=1";
$back = urlencode($back);
$msg = urlencode("Delete availability report");
header("Location: confirm.php?action=" . $msg . "&back=" . $back);
exit;
}
$q = "DELETE FROM fnreport WHERE reportid=" . ss($_REQUEST['reportid']);
$NATS->DB->Query($q);
$message = urlencode("Report Deleted");
header("Location: main.php?mode=views&message=" . $message);
exit;
}
$testlist = array();
示例11: ob_start
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
// Timeskip check - means this page skips timecheck/reset if site.monitor.keepalive is 0
if ($NATS->Cfg->Get("site.monitor.keepalive", 1) == 0) {
$timeskip = true;
} else {
$timeskip = false;
}
if (!$NATS_Session->Check($NATS->DB, $timeskip)) {
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit;
}
if ($NATS_Session->userlevel < 1) {
UL_Error($NATS->Lang->Item("live.monitor"));
}
if (isset($_REQUEST['style'])) {
$style = $_REQUEST['style'];
setcookie("fn_monitorstyle", $style);
} else {
if (isset($_COOKIE['fn_monitorstyle'])) {
$style = $_COOKIE['fn_monitorstyle'];
} else {
$style = "standard";
}
}
if ($style == "") {
$style = "standard";
}
Screen_Header($NATS->Lang->Item("live.monitor"), 1, 1, "<meta http-equiv=\"refresh\" content=\"60\">");
示例12: ob_start
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB)) {
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit;
}
if ($NATS_Session->userlevel < 9) {
UL_Error($NATS->Lang->Item("test.run"));
}
ob_end_flush();
Screen_Header($NATS->Lang->Item("test.run") . ": test/" . $_REQUEST['trid'], 1);
if (isset($_REQUEST['message'])) {
echo "<b>" . $_REQUEST['message'] . "</b><br>";
}
if (isset($amsg)) {
echo "<b>" . $amsg . "</b><br>";
}
if (isset($_REQUEST['action']) && $_REQUEST['action'] == "finish") {
if (!isset($_REQUEST['confirmed'])) {
echo "<b>" . $NATS->Lang->Item("testrun.manual.close") . "</b><br>";
echo $NATS->Lang->Item("testrun.manual.close.detail");
echo "<br><br>";
echo "<b>" . $NATS->Lang->Item("confirm.action") . ":</b> ";
示例13: ob_start
You should have received a copy of the GNU General Public License
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require("include.php");
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB))
{
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit();
}
if ($NATS_Session->userlevel<5) UL_Error("Edit Nodeside Test");
if (isset($_REQUEST['action']))
{
switch($_REQUEST['action'])
{
case "enable":
$q="UPDATE fnnstest SET testenabled=1 WHERE nstestid=".ss($_REQUEST['nstestid']);
//echo $q;
$NATS->DB->Query($q);
//exit();
header("Location: node.edit.php?nodeid=".$_REQUEST['nodeid']);
exit();
case "disable":
$q="UPDATE fnnstest SET testenabled=0 WHERE nstestid=".ss($_REQUEST['nstestid']);
//echo $q;
示例14: ob_start
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB)) {
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit;
}
if ($NATS_Session->userlevel < 9) {
UL_Error($NATS->Lang->Item("admin.interface"));
}
if (isset($_REQUEST['action'])) {
switch ($_REQUEST['action']) {
case "create":
$id = $NATS->RSS->Create($_REQUEST['feedname']);
$_REQUEST['edit'] = 1;
$_REQUEST['id'] = $id;
break;
case "update":
$id = $_REQUEST['feedid'];
$opts = array();
$opts['feedname'] = $_REQUEST['feedname'];
$opts['feedkey'] = $_REQUEST['feedkey'];
$opts['feedtype'] = $_REQUEST['feedtype'];
if ($_REQUEST['feedtype'] == "node") {
示例15: ob_start
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB)) {
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit;
}
if ($NATS_Session->userlevel < 5) {
UL_Error($NATS->Lang->Item("edit.view"));
}
function chs($var, $def = 0)
{
if (isset($_REQUEST[$var])) {
return ss($_REQUEST[$var]);
} else {
return $def;
}
}
if (isset($_REQUEST['action'])) {
switch ($_REQUEST['action']) {
case "create":
$q = "INSERT INTO fnview(vtitle,vclick,vstyle) VALUES(\"" . ss($_REQUEST['vtitle']) . "\",\"standard\",\"standard\")";
$NATS->DB->Query($q);
$_REQUEST['viewid'] = $NATS->DB->Insert_Id();