-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
107 lines (106 loc) · 4.82 KB
/
header.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
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
<?php
require_once 'mysqlaccess.php';
?>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<a class="navbar-brand" href="/">PoxBrain</a>
<div id="accounts" class="" data-loggedin="<?php echo $auth->isLoggedIn() ? 1 : 0; ?>">
<img src="/images/person_icon.png" alt="Handle your account">
<div id="account-popup">
<?php if($auth->isLoggedIn()) { ?>
<div>
<div class="top">
<?php echo $auth->getUsername(); ?>
<span><?php echo $auth->getEmail(); ?></span>
</div>
<hr>
<ul>
<a href="/account.php"><li>My Account</li></a>
<a href="/account.php?collection"><li>Update Collection</li></a>
<li onclick="performLogout()">Logout</li>
</ul>
</div>
<?php } ?>
</div>
</div>
<div id="search-form" class="">
<form class="navbar-form" action="/search.php" method="get" onsubmit="return performSearch()" >
<div id="search-group">
<input type="text" name="search" id="search" placeholder="Search..." autocomplete="off" class="form-control">
<input type="text" id="hard-search" disabled="disabled" class="form-control">
<div id="search-items">
</div>
</div>
<button id="search-submit" type="submit" class="btn btn-success">Go</button>
</form>
</div><!--/.navbar-collapse -->
</div>
</nav>
<div id="ability-popup">
</div>
<div id="loading">
<div id="loading-circles">
<div class="loading-circle"></div>
<div class="loading-circle2"></div>
</div>
<div id="loading-message">
<span>We're finishing up some things. Please try to keep this tab open and not navigate away until it finishes. Once this finishes, you'll get suggested
search results as you type and hovering over abilities will tell you what they do</span>
</div>
</div>
<div id="dim" onclick="dismissPopups()"></div>
<!--<div id="collection-help" class="floating-popup">
<h3>Track your collection on PoxNora in PoxBrain!</h3>
<p>This will display how many copies of each rune you own and their levels on rune and search pages.</p>
<p>Step 1: Make sure you're logged in on <a href="https://www.poxnora.com" target="_blank">poxnora.com</a></p>
<p>Step 2: Visit <a href="https://www.poxnora.com/runes/load-forge.do?m=checklist" target="_blank">this page</a>. Select everything (Ctrl+A) and copy it (Ctrl+C) into the text box below:</p>
<textarea id="collection-textarea"></textarea>
<button id="collection-submit" type="button" class="btn btn-primary" onclick="processCollection()">Step 3: Click here!</button>
<p id="collection-help-text"></p>
</div>-->
<div id="login-signup" class="floating-popup">
<div class="tab-group">
<div class="tab active" onclick="loginTab()">
Login
</div>
<div class="tab" onclick="registerTab()">
Signup
</div>
</div>
<form id="login" method="post" action="login.php" onsubmit="return performLogin()">
<div class="form-group">
<input type="email" class="form-control" id="login-email" name="email" required="required" placeholder="Email">
</div>
<div class="form-group">
<input type="password" class="form-control" id="login-password" name="password" required="required" placeholder="Password">
<a href="/forgetpassword.php"><label id="password-reset">Forgotten your password?</label></a>
</div>
<div class="checkbox">
<label for="login-remember">
<input type="checkbox" name="remember" id="login-remember"> Remember Me
</label>
</div>
<button type="submit" class="btn btn-success">Login</button>
</form>
<form id="signup" class="hide" method="post" action="signup.php" onsubmit="return performRegister()">
<div class="form-group">
<input type="email" class="form-control" id="register-email" name="email" required="required" placeholder="Email">
</div>
<div class="form-group">
<input type="password" class="password-control form-control" id="register-password" name="password" required="required" placeholder="Password">
</div>
<div class="form-group">
<input type="password" class="password-control form-control" id="register-password-confirm" name="password-confirm" required="required" placeholder="Password (again)">
</div>
<p id="password-match"></p>
<div class="form-group">
<input type="username" class="form-control" id="register-username" name="username" required="required" placeholder="Username">
</div>
<button type="submit" class="btn btn-success">Register</button>
</form>
<p id="account-result"></p>
</div>
<script type="text/javascript">
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent))
document.write('<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.5/bluebird.min.js"><\/script>');
</script>