示例#1
0
<?php

include_once $_SERVER["DOC_ROOT"] . "/scripts/php/core.php";
HTML::begin();
Head::begin("Sign Up");
Body::add_action("pre_home()");
Body::begin(true, true);
?>

<div id="home_container">
	<div class="layout-1200 uk-container uk-container-center">
			<div id="signup_panel" class="uk-width-1-1 uk-border-rounded uk-container-center uk-text-center">
				<h1>Join the Trading Revolution</h1>
					<form method="POST" onsubmit="clearIncomplete(this);" action="/signup/process.php" id="signup_form">
						<div class="uk-width-medium-1-3 uk-container-center">
							<input class="uk-width-1-1 text_medium" name="fname"  id="fname"  autocomplete="off" type="text"     placeholder="First Name" /><br/>
							<input class="uk-width-1-1 text_medium" name="lname"  id="lname"  autocomplete="off" type="text"     placeholder="Last Name" /><br/>
							<input class="uk-width-1-1 text_medium" name="eaddr"  id="eaddr"  autocomplete="off" type="text"     placeholder=".edu Address" /><br/>
							<input class="uk-width-1-1 text_medium" name="pword"  id="pword"  autocomplete="off" type="password" placeholder="Password"  />
							<input class="uk-width-1-1 text_medium" name="rpword" id="rpword" autocomplete="off" type="password" placeholder="Retype Password"  />
							
							<?php 
$location_html = "<b>Could not detect location</b>";
$location_array = get_location();
try {
    if (trim($location_array["properties"]["city"]) != "" && trim($location_array["properties"]["region"]) != "") {
        $location_html = "<b>General Location: </b>{$location_array["properties"]["city"]}, {$location_array["properties"]["region"]}";
    }
} catch (Exception $e) {
}
?>
示例#2
0
        //Throw an error
        header("Location:./?error=401");
        exit;
        //Exit
    }
    //Send an email to them with their new password
    $subject = "Password Reset";
    $msg = "A request was made recently to reset your eDart password. If this sounds right to you, you can click the reset button below to specify a new password.";
    $link = "http://wewanttotrade.com/reset-password/?auth=" . urlencode($rand);
    $btnTxt = "Reset";
    sendMail($to, $fname, $lname, $subject, $msg, $link, $btnTxt);
    $complete = true;
    //Change the boolean
}
HTML::begin();
Head::begin("Forgot Password");
?>
		<style>

		.norm{
		color:black;
		text-align:center;
		font-size:50px;
		margin-top:20px;
		}

		p {
		text-indent:20px;
		color:black;
		margin:0px;
		margin-top:5px;
示例#3
0
 * Signature: Tyler Nickerson
 * Copyright 2014 eDart
 *
 * [Do not remove this header. One MUST be included at the start of every page/script]
 *
 */
include_once $_SERVER["DOC_ROOT"] . "/scripts/php/core.php";
//Include all core functionality
//If there form has been submitted, send an email to the webmaster
if (isset($_POST["bug_desc"])) {
    sendMail("*****@*****.**", "Tyler", "Nickerson", "Bug Report", "A user has found the following bug (oh no!):<br/><br/>" . $_POST["bug_desc"], "/", "Go to eDart");
    header("Location: ./?sent=true");
    //Redirect to 'sent' version of page
}
HTML::begin();
Head::begin("Report a Bug");
?>

<style type="text/css">

.align { width:800px; display:block; margin:0px auto; margin-bottom:50px; }

#bug_desc { resize:none; width:300px; height:100px; font-size:12px; margin-bottom:10px; }

a{text-decoration:underline;color:black;}

</style>

<?php 
Head::end();
Body::begin();
示例#4
0
                    //Log them out
                    mysqli_query($con, "DELETE FROM `pass_reset` WHERE `key`='" . mysqli_real_escape_string($con, $_GET["auth"]) . "'");
                    $complete = true;
                } else {
                    header("Location:./?auth={$_GET["auth"]}&error=105");
                }
            }
        }
    } else {
        header("Location:/");
    }
} else {
    header("Location:/");
}
HTML::begin();
Head::begin("Reset Password");
?>
		<style>
		.align{width:800px;display:block;margin:0px auto;margin-bottom:50px;}
		</style>
<?php 
Head::end();
Body::add_action("\$('#error_display').modal()");
Body::begin();
?>
		<div id="mc_cont">
			<div id="mc">
				<div class="align">
					<h1 class="uk-text-center" style="line-height:1.5em;font-size:3.2em;">Hey there, <?php 
echo $name;
?>
示例#5
0
<?php

/*
 * Page Name: Report Abuse
 * Purpose: Allows users to report an abusive item
 * Last Updated: 6/5/2014
 * Signature: Tyler Nickerson
 * Copyright 2014 eDart
 *
 * [Do not remove this header. One MUST be included at the start of every page/script]
 *
 */
include_once $_SERVER["DOC_ROOT"] . "/scripts/php/core.php";
//Import core functionality
HTML::begin();
Head::begin("Internships");
?>
<style>p { text-indent:25px; text-align:justify; }</style>
<?php 
Head::end();
Body::add_action("showError()");
Body::begin();
?>
					<div class="layout-978 uk-container-center">
						<h1 class="uk-text-center" style="font-size:3.5em;line-height:1.5em;">Work with Us</h1>
						<h2 class="uk-text-center" style="color:gray;font-size:1.4em;"><i>It's time to put the 'you' in future.</i></h2>
						<p>
							So, you want to change the world, huh? Have the desire to help create a future of online trade, a marketplace without price tags?
							Then you've come to the right place. By interning at eDart, you will not only be helping to better the future of 
							society, but also gain valuable development skills that will better your future as an individual. Please note that
							eDart internships at the current time are <b>unpaid</b> and <b>completely voluntary</b>. That being said, we hope that