コード例 #1
0
ファイル: functions.logon.php プロジェクト: laiello/zanith
function logonCheck($user, $pass)
{
    $result = mysql_query("SELECT password FROM USER WHERE username='******'") or die("An error has occured, please report this error message the the administrator:<br /> <font color=\"red\">" . mysql_error() . "</font>");
    $row = mysql_fetch_row($result);
    if ($row[0] == $pass) {
        if (!isAct($user)) {
            die("The username you are trying to log into, is not currently activated, please access your email and click the activation link");
        }
        $exists = true;
        startLogin($user);
    } else {
        $exists = false;
    }
    mysql_free_result($result) or die("An error has occured, please report this error message the the administrator:<br /> <font color=\"red\">" . mysql_error() . "</font>");
    unset($result);
    unset($row);
    return $exists;
}
コード例 #2
0
ファイル: left.php プロジェクト: epiii/siadu-epiii
echo isAct("b_history", "circulation.php?tab=history");
?>
>History</a></li-->
	</ul>
</div>
<div class="leftsub">Membership</div>
<div class="blueblock">
	<ul>
	<li><a <?php 
echo isAct("b_staff", "members.php?tab=staff");
?>
>Teacher & staff</a></li>
	<li><a href="javascript:void(0)">Student</a></li>
	<li><a href="javascript:void(0)">Other</a></li>
	</ul>
</div>
<div class="leftsub">Tools</div>
<div class="blueblock">
	<ul>
	<li><a <?php 
echo isAct("b_label", "label.php");
?>
>Print label</a></li>
	<li><a <?php 
echo isAct("b_stopname", "stockopname.php");
?>
>Stock opname</a></li>
	<li><a href="javascript:void(0)">Preferences</a></li>
	</ul>
</div>
</div>