Example #1
0
							Assigned By
						</th>
						<th>
							Game
						</th>
						<th>
							Active
						</th>
					</tr>
				</thead>
				<tbody id="raffleTicketsUserBody">
					<?php 
        foreach ($allTickets as $thisTicket) {
            //Get extra ticket info
            $assignedTo = User::find_by_userid($thisTicket->assignedto);
            $assignedBy = User::find_by_userid($thisTicket->assignedby);
            echo '<tr>';
            echo '<td>';
            echo '<input type="checkbox" name="chk[]" value="' . $thisTicket->ticketid . '"/>';
            echo '</td>';
            echo '<td>';
            echo $thisTicket->ticketid;
            echo '</td>';
            echo '<td>';
            echo $assignedTo->username;
            echo '</td>';
            echo '<td>';
            echo $assignedBy->username;
            echo '</td>';
            echo '<td>';
            echo $thisTicket->game;
Example #2
0
function checkPassword($userid, $password)
{
    $thisUser = User::find_by_userid($userid);
    if (password_verify($password, $thisUser->password)) {
        //Password Valid
        return TRUE;
    } else {
        //Password Invalid
        return FALSE;
    }
}
Example #3
0
<?php

include 'includes/header.php';
?>
<div class="col-sm-9  col-md-10">
<?php 
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/modules/userManagement/users.php";
if (isset($_GET['edit'])) {
    ?>
	<?php 
    $thisUser = User::find_by_userid($_GET['edit']);
    ?>
	<h2>Edit User <?php 
    echo $thisUser->loginname;
    ?>
</h2>
	<form class="form-horizontal" action="/includes/modules/userManagement/users.php" method="POST">
		<div class="form-group">
	    <label for="username" class="col-sm-2 control-label">Username</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" id="username" name="username" placeholder="Username" value="<?php 
    echo $thisUser->username;
    ?>
">
	    </div>
	  </div>
	 	<div class="form-group">
	    <label for="email" class="col-sm-2 control-label">Email</label>
	    <div class="col-sm-10">
	      <input type="email" class="form-control" id="email" name="email" placeholder="Email" value="<?php 
    echo $thisUser->email;