Ejemplo n.º 1
0
			<option>Email</option>
		</select>:
		<br /><br />

		<div id='username' class='credential_type' style='display:inline-block;'>
			<label name='username'>Username</label>
			<input type='textbox' size='20' name='username'><br />
		</div>
		<div id='email' class='credential_type' style='display:none;'>
			<label name='email'>Email</label>
			<input type='textbox' size='20' name='email'><br />
		</div>
		<br /><br />

		<div style='float:right;'>
			<input type='button' value='Send Email' onclick='send_ajax_call_from_form("/pages/users/ajax.php","reset_password_form");' />
		</div><br />
	</form>

	<input id='username_bk' type='hidden' value=''>
	<input id='email_bk' type='hidden' value=''>
	<?php 
    $s_page = ob_get_contents();
    ob_end_clean();
    $a_page[] = draw_page_head('<div><a class="black_link" href="/">Back to login page</a></div>');
    $a_page[] = $s_page;
    $a_page[] = draw_page_foot();
    return implode("\n", $a_page);
}
echo manage_output(draw_forgot_password_page());
Ejemplo n.º 2
0
    echo $s_username;
    ?>
:</label><br />

		Password: <input type='password' name='password' id='p1' /><br />
		Verify: <input type='password' id='p2' onkeyup='verify_passwords();' /><br />
		<input type='hidden' name='key' value='<?php 
    echo $_GET['key'];
    ?>
'></input>
		<input type='hidden' name='username' value='<?php 
    echo $_GET['username'];
    ?>
'></input>
		<label id='password_verification' style='font-weight:bold;'></label>
		<br /><br />

		<div style='float:right;'>
			<input type='button' value='Set Password' onclick='send_ajax_call_from_form("/pages/users/ajax.php","reset_password_form");' />
		</div><br />
	</form>
	<?php 
    $s_page = ob_get_contents();
    ob_end_clean();
    $a_page[] = draw_page_head('<div><a class="black_link" href="/">To login page</a></div>');
    $a_page[] = $s_page;
    $a_page[] = draw_page_foot();
    return implode("\n", $a_page);
}
echo manage_output(draw_reset_password_page());
Ejemplo n.º 3
0
<!DOCTYPE html>
<?php 
require_once dirname(__FILE__) . "/login.php";
if (check_logged_in()) {
    header('Location: /pages/classes/main.php');
} else {
    echo manage_output(draw_login_page(get_post_var('session_expired')));
}
Ejemplo n.º 4
0
    $s_retval[] = '</td></tr></table>';
    return implode("\n", $s_retval);
}
if ($global_user) {
    if ($global_user->exists_in_db()) {
        $s_drawval = array();
        $s_drawval[] = draw_page_head();
        $s_drawval[] = '<script src="/js/table_functions.js"></script>';
        $s_drawval[] = '<script src="/js/jslists201330.js"></script>';
        $s_drawval[] = '<script src="/js/use_course_list.js"></script>';
        $s_drawval[] = '<script src="/js/course_list.js"></script>';
        $s_drawval[] = '<script src="/js/conflicts.js"></script>';
        $s_drawval[] = '<script src="/js/common_functions.js"></script>';
        $s_drawval[] = '<script src="/js/tab_functions.js"></script>';
        $s_drawval[] = '<script src="/js/semester_header.js"></script>';
        $s_drawval[] = '<script src="/js/schedule.js"></script>';
        $s_drawval[] = '<link href="/css/auto_table.css" rel="stylesheet" type="text/css">';
        $s_drawval[] = '<link href="/css/tabs.css" rel="stylesheet" type="text/css">';
        $s_drawval[] = '<link href="/css/select.css" rel="stylesheet" type="text/css">';
        $s_drawval[] = draw_logout_bar();
        $s_drawval[] = "<br />";
        $s_drawval[] = draw_semester_header();
        $s_drawval[] = "<br /><br /><dev id='content'>";
        $s_drawval[] = draw_tabs();
        $s_drawval[] = "</dev>";
        $s_drawval[] = draw_page_foot();
        echo manage_output(implode("\n", $s_drawval));
    }
} else {
    logout_session();
}
Ejemplo n.º 5
0
		<input type="hidden" name="command" value="create_user">

		<div id="choose_username_form">
			<label>Choose a username:</label><br />
			<input type="textarea" size="30" name="username" placeholder="Eg: The Dude" onblur="send_ajax_call_from_form('ajax.php','choose_username_form');" /><br />
			<label class="errors">&nbsp;</label>
		</div>

		<label>Choose a password:</label><br />
		<input type="password" name="password" size="30" /><br /><br />
		<label>Please enter an email (used for resetting your password):</label><br />
		<input type="textarea" name="email" size="30" placeholder="Eg: thedudeabides@anywhere.net" onkeypress="if (event.keyCode==13){ $('#create_submit').click(); }" /><br />
		<label class="errors"></label><br />
		<input id="create_submit" type="button" onclick="send_ajax_call_from_form('ajax.php','create_user_form');" value="Submit" /><br />
	</form>
	<?php 
    $s_page = ob_get_contents();
    ob_end_clean();
    return $s_page;
}
function draw_create_page()
{
    $a_retval = array();
    $a_retval[] = draw_page_head('<div><a class="black_link" href="/">Back to login page</a></div>');
    $a_retval[] = '<script type="text/javascript">dont_check_session_expired = true;</script>';
    $a_retval[] = draw_create_user_form();
    $a_retval[] = draw_page_foot();
    return implode("\n", $a_retval);
}
echo manage_output(draw_create_page());