Beispiel #1
0
     Login::process();
     $content .= Login::renderContent();
     $styles[] = Login::getStyles();
     $scripts[] = Login::getScripts();
     break;
 case 'logout':
     session_destroy();
     break;
 case 'design':
     WorkoutDesign::process();
     $content .= WorkoutDesign::renderContent();
     $styles[] = WorkoutDesign::getStyles();
     $scripts[] = WorkoutDesign::getScripts();
     break;
 case 'register':
     Register::process();
     $styles[] = WorkoutDesign::getStyles();
     $content .= Register::renderContent();
     break;
 case 'assign':
     WorkoutAssign::process();
     $content .= WorkoutAssign::renderContent();
     break;
 case 'list':
     WorkoutListing::process();
     $content .= WorkoutListing::renderContent();
     break;
 case 'workout':
     Workingout::process();
     $content .= Workingout::renderContent();
     break;
					<div class="form-group">
						<label class="col-sm-4 control-label" for"first_name">Confirm Passowrd: </label>
						<div class="col-sm-8">
						<input class="form-control" type="password" name="password2" id="password2"></input><br>
					</div>
					</div>




					<font color="red">
					<?php 
if (isset($_POST['submit'])) {
    include 'class.register.php';
    $register = new Register();
    $register->process();
    header('Location: login.php');
}
$token = $_SESSION['token'] = md5(uniqid(mt_rand(), true));
?>
				</font>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-3 pull-right">
					<input  type="hidden" name="token" value="<?php 
echo $token;
?>
">
					<input class="btn btn-default" style="width:101px;" type="submit" name="submit" id="submit" value="Register">
					<input class="btn btn-default" style="width:101px;" type="button" disabled="true" name="processing" id="processing" value="Processing..">
				</div>
				</div>
Beispiel #3
0
session_start();
require_once '../uses_constants/initSite.php';
$siteConstant->addFile('css', 'form.css');
$siteConstant->addFile('jq', 'registrationformnav.js');
$siteConstant->addFile('jq', 'jqueryeasing.js');
echo $siteConstant->getHead();
echo $siteConstant->getMenu();
?>

<?php 
$showError = false;
$regSuccess = false;
if (isset($_POST['register'])) {
    include '../uses_classes/class.Register.php';
    $register = new Register();
    if ($register->process()) {
        $regSuccess = true;
    } else {
        $err = $register->getErrors();
        $showError = true;
    }
}
?>

<?php 
if ($dBase->connectDatabase()) {
    $siteQuery = mysqli_query($dBase->getDbobj(), 'SELECT payment1,payment2,payment3 FROM siteinfo WHERE id=1');
    $siteData = mysqli_fetch_assoc($siteQuery);
}
$dBase->closeDatabse($dBase->getDbobj());
?>