blob: 89a3c8617e79b7a80a01b73ed68e97bb18c7d2a7 (
plain)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
<?php
if (is_cli_client() && !isset($force_full_html)) {
return;
}
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php echo isset($title) ? $title : 'FileBin'; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex,nofollow" />
<meta name="description" content="">
<meta name="author" content="">
<link href="<?php echo link_with_mtime("/data/css/ui-lightness/jquery-ui-1.10.3.custom.min.css"); ?>" rel="stylesheet">
<link href="<?php echo link_with_mtime("/data/css/bootstrap.min.css"); ?>" rel="stylesheet">
<link href="<?php echo link_with_mtime("/data/css/style.css"); ?>" rel="stylesheet">
<link href="<?php echo link_with_mtime("/data/css/colorbox.css"); ?>" rel="stylesheet">
<?php
if (file_exists(FCPATH."data/local/style.css")) {
echo '<link href="'.link_with_mtime("/data/local/style.css").'" rel="stylesheet">';
}
if (file_exists(FCPATH."data/local/favicon.png")) {
echo '<link href="'.link_with_mtime("/data/local/favicon.png").'" rel="shortcut icon">';
}
?>
<script type="text/javascript">
/* <![CDATA[ */
var require = { baseUrl: '/data/js' };
window.appConfig = {};
/* ]]> */
</script>
<script data-main="main" src="/data/js/vendor/require.js"></script>
</head>
<body>
<div id="wrap">
<?php if (file_exists(FCPATH."data/local/header.inc.php")) {
include FCPATH."data/local/header.inc.php";
}?>
<nav class="navbar navbar-fixed-top navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo site_url(); ?>"><?php
if (file_exists(FCPATH."data/local/logo.svg")) {
echo '<img class="brand-icon" src="'.link_with_mtime("/data/local/logo.svg").'" style="height: 20px"> FileBin';
} else {
echo "FileBin";
}
?>
</a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<?php if(!isset($GLOBALS["is_error_page"])) { ?>
<ul class="nav navbar-nav navbar-right">
<?php if (isset($user_logged_in) && $user_logged_in) { ?>
<li><a class="navbar-link" href="<?php echo site_url("/user/logout"); ?>">Logout</a></li>
<?php } else { ?>
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Login <b class="caret"></b></a>
<div class="dropdown-menu" style="padding: 5px;">
<?php if(auth_driver_function_implemented("can_reset_password")) { ?>
<p><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p>
<?php } ?>
<?php echo form_open("user/login", array("class" => "form-signin")); ?>
<input type="text" name="username" placeholder="Username" class="form-control">
<input type="password" name="password" placeholder="Password" class="form-control">
<button type="submit" name="process" class="btn btn-default btn-block">Login</button>
</form>
</div>
</li>
<?php } ?>
</ul>
<?php }; ?>
<ul class="nav navbar-nav">
<?php if (isset($user_logged_in) && $user_logged_in) { ?>
<li><a href="<?php echo site_url("file/index") ?>"><span class="glyphicon glyphicon-pencil"></span> New</a></li>
<li><a href="<?php echo site_url("file/upload_history") ?>"><span class="glyphicon glyphicon-book"></span> History</a></li>
<li class="dropdown">
<a href="<?php echo site_url("user/index"); ?>" class="dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-user"></span> Account <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<?php include "user/nav.php"; ?>
</ul>
</li>
<?php } ?>
</ul>
</div>
</div>
</nav>
<div id="navbar-height"></div>
<div class="container">
<?php
if (isset($alerts)) {
foreach ($alerts as $alert) { ?>
<div class="alert alert-dismissable alert-<?php echo $alert["type"]; ?>" style="text-align: center">
<button type="button" class="close" data-dismiss="alert">×</button>
<?php echo $alert["message"]; ?>
</div>
<?php
}
}
?>
|