Beispiel #1
0
    array_push($userRank, $master_array);
    //Set the new ranking array
    //Because we're changing someone else's information, we can't use the API
    $query = "UPDATE `usr` SET `rank`='" . mysqli_real_escape_string($con, json_encode($userRank)) . "' WHERE `id`='" . mysqli_real_escape_string($con, $otherInfo[0]["id"]) . "'";
    mysqli_query($con, $query);
    //Add the user to the array of people who ranked
    array_push($who_ranked, $_SESSION["userid"]);
    mysqli_query($con, "UPDATE `exchange` SET `who_ranked`='" . mysqli_real_escape_string($con, json_encode($who_ranked)) . "' WHERE `id`='" . mysqli_real_escape_string($con, $oid) . "'");
    sendNotify($other_id, "Someone has ranked you!", "profile.php?id={$other_id}");
    header("Location:/");
}
/* * * END USER RANKING SCRIPT * * */
HTML::begin();
Head::make("Exchange with {$other_fname} {$other_lname} | {$i1name}  for {$i2name}", false);
Body::add_action("pre_exchange()");
Body::add_action("codeAddress('{$address}')");
Body::begin();
//This converts the first name of the other user to a JavaScript variable for us to use later.
echo "<script>var fname = \"{$other_fname}\";</script>";
?>

		<style type="text/css">
		#banner { border-bottom:none !important; }
		</style>

			<?php 
/* * * PRINT OUT THE CHAT PANEL * * */
//The head
$chat_head = <<<BOB
\t\t\t\t\t\t\t\t<img src="./img/sideshadowl.png"
\t\t\t\t\t\t\t\t\t style="position:fixed;z-index:200;right:35%;width:20px;height:100%;">
Beispiel #2
0
		}

		#libtable {display:block; margin:0 auto;  margin-top:20px; }
		#libtable td { padding:10px; }

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

		h1 { border-top:1px solid green; font-family:TitilliumrRegular,Trebuchet MS, sans-serif;font-size:45px;color:green; padding:25px !important; text-align:center;}


		.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">
					<div class="norm" >
						<?php 
//If the form was submitted, show a different header than usual
if ($complete) {
    echo "Email sent!";
} else {
    echo "Forgot your password?";
}
?>
					</div>
Beispiel #3
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) {
}
?>
Beispiel #4
0
 * 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
							by setting up the employment system in this way, we will filter out those who are driven entirely by money and bring in
							those who are truly passionate about our mission and purpose. Those who work should not work for money, but for themselves.
							Create what you want to exist in the world, not what others tell you should exist. Thus idealogy lies at the core of our establishment.
						</p>
						<p>