Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbloom committed Nov 25, 2014
1 parent 95dd46f commit a0472b1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -26,7 +26,7 @@
if ($use_native_login == true){
header('Location: login.php');
} else {
header('Location: http://labs.library.gvsu.edu/login');
header('Location: ' . $not_native_login_url);
}

}
Expand Down
14 changes: 13 additions & 1 deletion login.php
Expand Up @@ -16,6 +16,10 @@
session_destroy();
}
header('Location: index.php');
} else {
if ($use_native_login == false) {
header('Location: '. $non_native_login_url);
}
}
if ($_POST){
$formUsername = $_POST['username'];
Expand Down Expand Up @@ -84,7 +88,9 @@
<div class="line">
<div class="left span2 unit">
<label for="password">Password</label>
<input name="password" type="password"/>
<input name="password" id="password" type="password"/>
<label for="show">Show Password?</label>
<input name="show" id="show" type="checkbox">
</div>
</div>
<div class="line">
Expand All @@ -96,5 +102,11 @@
</div> <!-- end span -->
</div> <!-- end line -->
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>
jQuery("#show").click(function(){
jQuery("#password").prop('type', this.checked ? 'text' : 'password');
});
</script>
</body>
</html>
3 changes: 2 additions & 1 deletion resources/secret/config.php.example
Expand Up @@ -23,4 +23,5 @@ $from_email = 'library@email.com';
$email_subject = 'Library Status Problem Report';

//Native login or not
$use_native = false;
$use_native_login = true;
$non_native_login_url = 'http://labs.library.gvsu.edu/login';
11 changes: 5 additions & 6 deletions status.sql
Expand Up @@ -92,20 +92,19 @@ CREATE TABLE `systems` (
`system_id` int(10) NOT NULL AUTO_INCREMENT,
`system_name` varchar(255) NOT NULL,
`system_url` varchar(255) NOT NULL,
`system_category` int(11) NOT NULL COMMENT '0 = system; 1 = building',
PRIMARY KEY (`system_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ;

--
-- Dumping data for table `systems`
--

INSERT INTO `systems` (`system_id`, `system_name`, `system_url`, `system_category`) VALUES
(1, 'Library Homepage', 'http://gvsu.edu/library', 0),
INSERT INTO `systems` (`system_id`, `system_name`, `system_url`,) VALUES
(1, 'Library Homepage', 'http://gvsu.edu/library'),
(2, 'Document Delivery', '', 0),
(3, 'Computer Availability', 'http://gvsu.edu/library/computers', 0),
(4, 'Heating & Cooling', '', 1),
(5, 'Network', '', 1);
(3, 'Computer Availability', 'http://gvsu.edu/library/computers'),
(4, 'Heating & Cooling', ''),
(5, 'Network', '');

-- --------------------------------------------------------

Expand Down

0 comments on commit a0472b1

Please sign in to comment.