Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once('User.php');
- if(isset($_POST['submit']) OR isset($_POST['next']) OR isset($_POST['previous'])){
- $username = $_POST["user"];
- $password = $_POST["pass"];
- $object = new User();
- $object->username= $username;
- $object->Password=$password;
- if( $object->isAuthenticated() ){
- echo "User Verified . <br><br>";
- $start = 0;
- if(isset($_POST['next'])) {
- if(isset($_POST['start'])){
- $start = $_POST['start'];
- }
- }
- else if(isset($_POST['previous'])) {
- $start = $_POST['start'] - 2;
- if($start < 0) {
- $start = 0;
- }
- }
- $object->getBooks($start);
- }
- }
- else{
- echo "Wrong User Name Or Password . <br>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement