本文整理汇总了PHP中loggedinonly函数的典型用法代码示例。如果您正苦于以下问题:PHP loggedinonly函数的具体用法?PHP loggedinonly怎么用?PHP loggedinonly使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了loggedinonly函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loggedinonly
?>
/themes/<?php
echo $THEME;
?>
/theme.css" />
<script type="text/javascript" src="<?php
echo $site_config['SITEURL'];
?>
/backend/java_klappe.js"></script>
</head>
<body class="shoutbox_body">
<?php
echo '<div class="shoutbox_contain"><table border="0" style="width: 99%; table-layout:fixed">';
} else {
if ($site_config["MEMBERSONLY"]) {
loggedinonly();
}
stdhead();
begin_frame(T_("SHOUTBOX_HISTORY"));
echo '<div class="shoutbox_history">';
$query = 'SELECT COUNT(*) FROM shoutbox';
$result = SQL_Query_exec($query);
$row = mysql_fetch_row($result);
echo '<div align="center">Pages: ';
$pages = round($row[0] / 100) + 1;
$i = 1;
while ($pages > 0) {
echo "<a href='" . $site_config['SITEURL'] . "/shoutbox.php?history=1&page=" . $i . "'>[" . $i . "]</a> ";
$i++;
$pages--;
}
示例2: dbconn
<?php
//
// TorrentTrader v2.x
// $LastChangedDate: 2011-11-17 00:13:07 +0000 (Thu, 17 Nov 2011) $
// $LastChangedBy: dj-howarth1 $
//
// http://www.torrenttrader.org
//
//
require_once "backend/functions.php";
dbconn(true);
loggedinonly(true);
?>
<?php
if (!$CURUSER) {
?>
<meta http-equiv='refresh' content='0;url=account-login.php' />
<?php
}
stdhead(T_("HOME"));
//check
if (file_exists("check.php") && $CURUSER["class"] == 7) {
show_error_msg("WARNING", "Check.php still exists, please delete or rename the file as it could pose a security risk<br /><br /><a href='check.php'>View Check.php</a> - Use to check your config!<br /><br />", 0);
}
//Site Notice
if ($site_config['SITENOTICEON']) {
begin_frame(T_("NOTICE"));