Update register.php
This commit is contained in:
1 parent
aba03d2c33
commit
8142aba0a4
1 file changed
+6
-6
+6
-6
@@ -2,7 +2,7 @@
|
|||||||
require_once '../includes/auth_functions.php';
|
require_once '../includes/auth_functions.php';
|
||||||
|
|
||||||
if (isLoggedIn()) {
|
if (isLoggedIn()) {
|
||||||
header("Location: /unimarket/index.php");
|
header("Location: /index.php");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,8 +116,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Register - UniMarket</title>
|
<title>Register - UniMarket</title>
|
||||||
<link rel="stylesheet" href="/unimarket/assets/css/style.css">
|
<link rel="stylesheet" href="/assets/css/style.css">
|
||||||
<link rel="stylesheet" href="/unimarket/assets/css/responsive.css">
|
<link rel="stylesheet" href="/assets/css/responsive.css">
|
||||||
<style>
|
<style>
|
||||||
.role-selector {
|
.role-selector {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -178,7 +178,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
|
|
||||||
<?php if ($success): ?>
|
<?php if ($success): ?>
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
Registration successful! You can now <a href="/unimarket/auth/login.php">login</a>.
|
Registration successful! You can now <a href="/auth/login.php">login</a>.
|
||||||
</div>
|
</div>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php if (isset($errors['general'])): ?>
|
<?php if (isset($errors['general'])): ?>
|
||||||
@@ -264,7 +264,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
<button type="submit" class="btn" style="width: 100%;">Register</button>
|
<button type="submit" class="btn" style="width: 100%;">Register</button>
|
||||||
|
|
||||||
<p style="text-align: center; margin-top: 20px;">
|
<p style="text-align: center; margin-top: 20px;">
|
||||||
Already have an account? <a href="/unimarket/auth/login.php">Login here</a>
|
Already have an account? <a href="/auth/login.php">Login here</a>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@@ -322,4 +322,4 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user