summaryrefslogtreecommitdiffstats
path: root/application/views/header.php
blob: 40bb6e6a324280752a2c5c55a96c2fb604056133 (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
<?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.8.23.custom.css"); ?>" rel="stylesheet">
	<link href="<?php echo link_with_mtime("/data/css/bootstrap-2.1.1.min.css"); ?>" rel="stylesheet">
	<link href="<?php echo link_with_mtime("/data/css/bootstrap-responsive-2.1.1.min.css"); ?>" rel="stylesheet">
	<link href="<?php echo link_with_mtime("/data/css/style.css"); ?>" rel="stylesheet">
	<?php
		if (file_exists(FCPATH."data/local/style.css")) {
			echo '<link href="'.link_with_mtime("/data/local/style.css").'" rel="stylesheet">';
		}
?>

</head>

<body>
<?php if (file_exists(FCPATH."data/local/header.inc.php")) {
	include FCPATH."data/local/header.inc.php";
}?>
	<div class="navbar navbar-fixed-top navbar-inverse">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="<?php echo site_url(); ?>">FileBin</a>
				<?php if(!isset($GLOBALS["is_error_page"])) { ?>
					<ul class="nav pull-right">
						<?php if(isset($username) && $username) { ?>
							<li><a 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: 15px;">
										<?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"); ?>
											<input type="text" name="username" placeholder="Username" class="input-medium">
											<input type="password" name="password" placeholder="Password" class="input-medium">
											<button type="submit" name="process" class="btn btn-primary pull-right">Login</button>
										</form>
									</div>
							</li>
						<?php } ?>
					</ul>
					<?php }; ?>
					<ul class="nav">
						<?php if(isset($username) && $username) { ?>
							<li><a href="<?php echo site_url("file/index") ?>"><i class="icon-pencil icon-white"></i> New</a></li>
							<li><a href="<?php echo site_url("file/upload_history") ?>"><i class="icon-book icon-white"></i> History</a></li>
							<?php if(auth_driver_function_implemented("can_register_new_users")) { ?>
								<li><a href="<?php echo site_url("user/invite") ?>"><i class="icon-plus icon-white"></i> Invite</a></li>
							<?php } ?>
						<?php } ?>
					</ul>
			</div>
		</div>
	</div>

	<div class="container">