forked from mudmin/UserSpice5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
33 lines (30 loc) · 1.25 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
<?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 class="jumbotron">
<h1 align="center"><?=lang("JOIN_SUC");?> <?php echo $settings->site_name;?></h1>
<p align="center" class="text-muted"><?=lang("MAINT_OPEN")?></p>
<p align="center">
<?php
if($user->isLoggedIn()){?>
<a class="btn btn-primary" href="users/account.php" role="button"><?=lang("ACCT_HOME");?> »</a>
<?php }else{?>
<a class="btn btn-warning" href="users/login.php" role="button"><?=lang("SIGNIN_TEXT");?> »</a>
<a class="btn btn-info" href="users/join.php" role="button"><?=lang("SIGNUP_TEXT");?> »</a>
<?php }?>
</p>
<br>
<p align="center"><?=lang("MAINT_PLEASE");?></p>
<h4 align="center"><a href="https://userspice.com/getting-started/">https://userspice.com/getting-started/</a></h4>
</div>
<?php languageSwitcher();?>
<!-- Place any per-page javascript here -->
<?php require_once $abs_us_root . $us_url_root . 'users/includes/html_footer.php'; ?>