Repository navigation
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·94 lines (73 loc) · 3.26 KB
/
Copy pathindex.php
File metadata and controls
executable file
·94 lines (73 loc) · 3.26 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
require_once("dbcon.php");
require_once("util.php");
$sql = SQLCon::getSQL();
$sql->configTables();
$layout = "base";
ob_start();
?>
<?php
if (isset($_GET["i"]))
{
incrementPerfCount("specialVisit");
}
logGenericPageView("index.php");
?>
<?php
require("navbar.php");
?>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<br />
<h1>Welcome to Vadweb!</h1><br>
<h2>Quick, easy, secure file sharing.</h2><br><br><br>
<p>Need an account? Make one to upload files and improve your viewing experience!</p>
<p><a class="btn btn-primary btn-lg" role="button" href="/register.php">Click here to register! »</a><a type="button" href="/about.php" class="btn btn-lg btn-success" style="margin-left:5em">About this project</a></p>
<br>
<br>
<p><a class="btn btn-info btn-lg" role="button" href="/files.php">File Uploads »</a></p>
</div>
</div>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-md-4">
<h2>Vadweb 2.0, now hundreds of times faster</h2>
<p>Using the latest technologies delivered by MySQL 5.5.41+ and PHP 5.6.7+, Vadweb loads files at blazing speeds, even when calculating and sorting through complex permission settings. </p>
<p><a class="btn btn-default" href="/about.php" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Share your files and images securely</h2>
<p>Have you needed to send your friend a picture, but only to find its larger than 25 megabytes? Have you wanted to send your friend a video, but are too lazy to upload it to YouTube, or want to share in true high definition? Have you wanted to share a file with your grandmother to help her install or configure her computer? Whether for family needs or for expressing yourself to the entire internet, VadWeb answers all of your legal file sharing needs. </p>
<p><a class="btn btn-default" href="/about.php" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Featuring more AWESOME</h2>
<p>Finer user account control, profile pictures, and an advanced commenting/voting system permit you to have a pinnacle experience as you interact with others.</p>
<p><?php echo count($sql->sQuery("select * from UserData")->fetchAll());?> users registered.</p>
<p>User group: <?php echo currentLogin(); ?>.</p>
<p><a class="btn btn-default" href="/about.php" role="button">View details »</a></p>
</div>
</div>
<?php
if (currentLogin() >= Constants::GROUP_ADMIN) {
?>
<div class="container">
Welcome admin!
</div>
<?php
} //endif
?>
<hr>
<footer>
<p>Please be aware that some features are in beta testing or in development, and may not be available for <u>all</u> users</p>
<p><b>© Vadweb 2014-2015</b></p>
</footer>
</div> <!-- /container -->
<?php
$content = ob_get_clean();
require($layout . ".php");
?>