Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link href="style.css" rel="stylesheet" type="text/css">
- <div class="page-margin">
- <div class="wowonder-well">
- <h3 class="bold"><strong><?php echo "Drive Match"; ?></strong></h3>
- <!-- Deklaration of variables -->
- <?php $userSignedUp = null; $databaseConnectionSuccess = null; ?>
- <!-- Checking Logged in Status (If User not logged in ->Exit) -->
- <?php if ($wo['loggedin'] == false) { header("Location: " . $wo['config']['site_url']); exit(); }?>
- <!-- Getting Userdata and putting into Array -->
- <?php foreach($wo['user'] as $meine_blume){$user[] = $meine_blume; }?>
- <!-- Putting selected UserData Array in some variables -->
- <?php $user_avatar = $user[6]; $user_id = $user[0]; $user_name = $user[1];?>
- <!-- Getting Connection Data from db.ini -->
- <?php $file = parse_ini_file("db.ini");?>
- <!-- Store Variables information from db.ini -->
- <?php $host = trim($file["dbhost"]); $user = trim($file["dbuser"]); $pass = trim($file["dbpass"]); $name = trim($file["dbname"]);?>
- <!-- db.php to call function from db.php File -->
- <?php require("db.php"); $db = new access($host, $user, $pass, $name);?>
- <!-- If Database Connection Failed header("Location:https://yourbraap.com/404"); exit; -->
- <?php
- if ($db->connect() == null) {
- echo "<h4>ERROR</h4>";
- echo "<p>Could not Connect to Database!</p>";
- echo "<p>Please retry in a few minutes.</p>";
- }
- else {
- $userSignedUp = $db->userSignedUp();
- if ($userSignedUp == true){
- //User signed up
- }else{
- //User NOT signed up
- echo "<button class='btn_teilnehmen'>Anmelden!</button>";
- }
- }
- ?>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement