本文整理汇总了PHP中loginprompt函数的典型用法代码示例。如果您正苦于以下问题:PHP loginprompt函数的具体用法?PHP loginprompt怎么用?PHP loginprompt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了loginprompt函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loginprompt
loginprompt(false);
break;
case "logout":
h1("Logout");
if (isset($_SESSION) && array_key_exists("user", $_SESSION)) {
$usernm = $_SESSION["user"]->usernm;
$userix = $_SESSION["user"]->userix;
unset($_SESSION["user"]);
$x->log("Logout Succeeded", "Logout succeeded for {$usernm}", $userix);
} else {
$x->log("Logout Succeeded Anonymously", "Anonymous logout succeeded.");
}
$usernm = "";
$userix = 0;
echo "<p>You have been logged out.</p>";
loginprompt(false);
break;
}
if ($presentform) {
?>
<table><tr><td class="loginbox">
<form action='<?php
echo $page;
?>
' method='post'>
<h3>Log In</h3>
<table><tr>
<td colspan=2>If you already have an account, log in here.</td>
</tr><tr>
<td>E-mail address</td>
<td><input type='text' name='usernm' size=40 maxlength=64></td>
示例2: loginprompt
<li><a href="photos.php"><img src="image/RedCurlingStone20L.png" />Photos and Video</a></li>
<li><a href="pubs.php"><img src="image/BlueCurlingStone20L.png" />Publications</a></li>
<li><a href="media.php"><img src="image/RedCurlingStone20L.png" />Media</a></li>
<li><a href="schedule.php"><img src="image/BlueCurlingStone20L.png"/>Schedule</a></li>
<li><a href="http://bit.ly/atlcurling"><img src="image/RedCurlingStone20L.png"/>Facebook</a></li>
<li><a href="http://atlcurling.wikia.com/wiki/Atlanta_Curling_Wiki"><img src="image/BlueCurlingStone20L.png"/>Wiki</a></li>
<li><a href="contactus.php"><img src="image/RedCurlingStone20L.png"/>Contact Us</a></li>
</ul>
</div>
<div class="colmask leftmenu">
<div class="colleft">
<div class="col1">
<!-- InstanceBeginEditable name="body" -->
<?php
loginprompt();
?>
<h1>Atlanta Curling Club: About Us</h1>
<p>
Founded in February 2010, while watching curling during the Winter Olympics, the Atlanta Curling Club was first formed as an online community on Facebook, intended to gather together curlers, curling enthusiasts and people who just wanted to try curling together to brainstorm how to form a curling club in the Atlanta area.
</p>
<p>
Indeed, the ACC still has a sizeable presence on <a href="http://bit.ly/atlcurling">Facebook</a> where there have been many discussions about how we should form a curling club, and many interesting articles and links have been published to curling resources.
</p>
<!-- InstanceEndEditable -->
</div><!-- col1 -->
<div class="col2">
<center>
<?php
/*