-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
83 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,51 @@ | ||
<link rel="icon" type="image/png" href="/xvwa/img/xvwa-logo-1.png" /> | ||
<div class="container"> | ||
<!-- Brand and toggle get grouped for better mobile display --> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> | ||
<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="/xvwa/">XVWA</a> | ||
</div> | ||
<!-- Collect the nav links, forms, and other content for toggling --> | ||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | ||
<ul class="nav pull-right navbar-nav"> | ||
<li class="dropdown" id="menuLogin"> | ||
<?php | ||
include(__DIR__.'/config.php'); | ||
if(isset($_SESSION['user'])){ | ||
echo "<a href='#' class='dropdown-toggle' data-toggle='dropdown'> " . ucfirst(($_SESSION['user'])) . " <b class='caret'></b></a>"; | ||
echo "<ul class='dropdown-menu'>"; | ||
echo "<li><a href='".$XVWA_WEBROOT."/xvwa/logout.php'>Logout</a></li>"; | ||
echo "</ul>"; | ||
}else{ | ||
echo "<a class='dropdown-toggle' href='#' data-toggle='dropdown' id='navLogin'>Login</a>"; | ||
echo "<div class='dropdown-menu' style='padding:17px;'>"; | ||
echo "<form class='form' method='POST' id='formLogin' action='".$XVWA_WEBROOT."/xvwa/login.php'>"; | ||
echo "<input name='username' id='username' placeholder='Username' type='text'><br>"; | ||
echo "<input name='password' id='password' placeholder='Password' type='password'><br><br>"; | ||
echo "<button type='submit' id='btnLogin' class='btn btn-primary pull-right'>Login</button>"; | ||
echo "</form></div>"; | ||
} | ||
?> | ||
|
||
|
||
</li> | ||
<li> | ||
<a href="#" data-toggle="modal" data-target="#myModal">About</a> | ||
|
||
|
||
|
||
</li> | ||
</ul> | ||
|
||
</div> | ||
<!-- /.navbar-collapse --> | ||
</div> | ||
|
||
|
||
<link rel="icon" type="image/png" href="/xvwa/img/xvwa-logo-1.png" /> | ||
<div class="container"> | ||
<!-- Brand and toggle get grouped for better mobile display --> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> | ||
<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="/xvwa/">XVWA</a> | ||
</div> | ||
<!-- Collect the nav links, forms, and other content for toggling --> | ||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | ||
<ul class="nav pull-right navbar-nav"> | ||
<li class="dropdown" id="menuLogin"> | ||
<?php | ||
|
||
include('config.php'); | ||
|
||
if(isset($_SESSION['user'])){ | ||
echo "<a href='#' class='dropdown-toggle' data-toggle='dropdown'> " . ucfirst(($_SESSION['user'])) . " <b class='caret'></b></a>"; | ||
echo "<ul class='dropdown-menu'>"; | ||
echo "<li><a href='".$XVWA_WEBROOT."/xvwa/logout.php'>Logout</a></li>"; | ||
echo "</ul>"; | ||
}else{ | ||
echo "<a class='dropdown-toggle' href='#' data-toggle='dropdown' id='navLogin'>Login</a>"; | ||
echo "<div class='dropdown-menu' style='padding:17px;'>"; | ||
echo "<form class='form' method='POST' id='formLogin' action='".$XVWA_WEBROOT."/xvwa/login.php'>"; | ||
echo "<input name='username' id='username' placeholder='Username' type='text'><br>"; | ||
echo "<input name='password' id='password' placeholder='Password' type='password'><br><br>"; | ||
echo "<button type='submit' id='btnLogin' class='btn btn-primary pull-right'>Login</button>"; | ||
echo "</form></div>"; | ||
} | ||
?> | ||
|
||
|
||
</li> | ||
<li> | ||
<a href="#" data-toggle="modal" data-target="#myModal">About</a> | ||
|
||
|
||
|
||
</li> | ||
</ul> | ||
|
||
</div> | ||
<!-- /.navbar-collapse --> | ||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters