Пример #1
0
<body>

<div id='body_div'>
<table align="center" id='body_table'>
	<tbody id="tbody_rainbow">
		<tr>
			<td>
				<div class="display_none"><span id="loginUserId"><?php 
if (isset($_SESSION['userkey'])) {
    echo $_SESSION['userkey'];
} else {
    echo 'user';
}
?>
</span><span id="isIE"><?php 
if (detectIE() == true) {
    echo '1';
} else {
    echo '0';
}
?>
</span><span id="isIE_JS"><?php 
if (detectIE_JS() == true) {
    echo '1';
} else {
    echo '0';
}
?>
</span><span id="isChrome_JS"><?php 
if (detectChrome_JS() == true) {
    echo '1';
Пример #2
0
							<input type="file" name="uploadImg" id="uploadImg" size="8" />	
							<input name="btn_triggerUpload" id="btn_triggerUpload" type="submit" value="Upload" />
						</form>
						</td>
						<td class="floatRight">Name:</td>
						<td ><input type="text" value="" class="inputData inWidth150" id="edit_realname" name="edit_realname" placeholder="2-15 digits, letters or underscore"  value="<?php 
echo $_SESSION['username'];
?>
" /></td>
					</tr>
					<tr><td class="font_lightBlue floatRight" >Login name:</td><td><label class="inWidth150" id="edit_login_name" name="edit_login_name"></label></td></tr>
					<?php 
if ($_ulevel > 5) {
    ?>
					<tr><td class="font_lightBlue floatRight" >Login password:</td><td><?php 
    if (detectIE()) {
        ?>
		
					<input class="inWidth150" id="edit_login_textpw" name="edit_login_textpw" type="text" value="" placeholder="4-15 digits or letters" maxlength="15" />
					<input class="inputData inWidth150 display_none" id="edit_login_pw" name="edit_login_pw" type="password" value=""  maxlength="15" />
					<?php 
    } else {
        ?>
					<input class="inputData inWidth150" id="edit_login_pw" name="edit_login_pw" type="password" value="" placeholder="4-15 digits or letters" />
					<?php 
    }
    ?>
					</td></tr>
					<tr><td class="floatRight">School:</td><td>
					<select id="edit_organisation" name="edit_organisation" >
						<option id="opt_sch0001">School A</option>
Пример #3
0
}
// default to login required
if ($auth_user_here != false) {
    // some pages do not need auth but include this file so this following line is optional
    $mem->auth($auth_name);
}
// see if user has the right access level is not on the BL and has not got a hack counter above 3
## remove tokens from 2 pages ago to stop build up
if (!isLogin()) {
    // stop login page from using this and moving the vars
    $tokens = array();
    $num_tokens = count($_SESSION['tokens']);
    if ($num_tokens > 0) {
        foreach ($_SESSION['tokens'] as $key => $value) {
            $tokens[$key] = $value;
        }
        $_SESSION['tokens'] = array();
    }
}
## if no time zone set display error ##
if (NO_TIME_ZONE) {
    // if no time zoneset show warning message
    set_warning("Setup Error: The website's time zone is not set, defaulting to use Europe/London (GMT)");
}
## Block Internet Explorer ###
if ($allow_ie == 0) {
    if (detectIE() && !isError()) {
        // alow IE on the pubbans page aswell as the error page
        sendError('ie');
    }
}