session_start(); //error_reporting(0); ?>
![]() |
||||
|
|
Home Courses Directions //See if he classes are enabled include 'scripts/connect.php'; $query = "SELECT * FROM settings WHERE setkey='signUp'"; $result = mysql_query($query); $cont = ""; while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $cont = $row['value']; } mysql_close($conn); if ($cont == "0") { //classes are enabled ?> Sign Up } ?> Contact if($_SESSION["loggedIn"] == '1') { //User is an admin Give them admin links ?> Admin Links Courses Content Classes Students } ?> |
|
$pgID = $_GET[pgID];
if ($pgID == "1" || $pgID == "")
{
//Load the index page
include 'scripts/indexpage.php';
}
else if ($pgID =="2")
{
//load the serices page
include 'scripts/directions.php';
}
else if ($pgID =="3")
{
//load the photo albums
include 'scripts/classes.php';
}
else if ($pgID =="4")
{
//load the contact us page
include 'scripts/contact.php';
}
else if ($pgID == "5")
{
//Load the admin classes page
include 'scripts/editCourses.php';
}
else if ($pgID == "6")
{
//load the edit content page
include 'scripts/editContent.php';
}
else if($pgID =="admin")
{
//Load the admin login page
include 'scripts/adminLogin.php';
}
else if ($pgID == "signUp")
{
//load the signup page
include'scripts/signUp.php';
}
else if($pgID == "attendInput")
{
include 'scripts/attendInput.php';
}
else if ($pgID == "adminPanel")
{
include'scripts/adminPanel.php';
}
else if($pgID == "manageClasses")
{
include'scripts/manageClasses.php';
}
else if ($pgID == "manageStudents")
{
include'scripts/manageStudents.php';
}
else
{
//Page is not there throw a 404 error
}
?>
|
|
|
|
||||
| Copyright © Community Bible Institute if($_SESSION['loggedIn'] == '1') { //user is logged in allow a logout echo "Logout"; } else { echo "Admin"; } ?> | ||||
|
|
||||