This repository has been archived by the owner on Apr 10, 2023. It is now read-only.
forked from mudmin/UserSpice4
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
38 lines (33 loc) · 1.38 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
if(file_exists("install/index.php")){
//perform redirect if installer files exist
//this if{} block may be deleted once installed
header("Location: install/index.php");
}
require_once 'users/init.php';
require_once $abs_us_root.$us_url_root.'users/includes/template/prep.php';
if(isset($user) && $user->isLoggedIn()){
}
?>
<div id="page-wrapper">
<div class="container">
<div class="jumbotron">
<h1 align="center">Welcome to <?php echo $settings->site_name;?></h1>
<p align="center" class="text-muted">An Open Source PHP User Management Framework. </p>
<p align="center">
<?php
if($user->isLoggedIn()){?>
<a class="btn btn-primary" href="users/account.php" role="button">User Account »</a>
<?php }else{?>
<a class="btn btn-warning" href="users/login.php" role="button">Log In »</a>
<a class="btn btn-info" href="users/join.php" role="button">Sign Up »</a>
<?php } ?>
</p>
<br>
<p align="center">You have successfully installed UserSpice!<br>To view our getting started documentation, please visit</p>
<h4 align="center"><a href="https://userspice.com/getting-started/">https://userspice.com/getting-started/</a></h4>
</div>
</div>
</div>
<!-- Place any per-page javascript here -->
<?php require_once $abs_us_root . $us_url_root . 'usersc/templates/' . $settings->template . '/footer.php'; //custom template footer ?>