First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
//
|
||||
// Preprocessing Code
|
||||
//
|
||||
|
||||
|
||||
require_once("include/globals.php");
|
||||
|
||||
|
||||
|
||||
//
|
||||
// Validate actions against school_record permissions
|
||||
//
|
||||
switch (strtolower($action)) {
|
||||
|
||||
//
|
||||
// Email system
|
||||
//
|
||||
case 'emails':
|
||||
case 'email-messages':
|
||||
case 'email-parents':
|
||||
case 'email-logs':
|
||||
if ($school_record['email_system'] == 'N') $action = "";
|
||||
break;
|
||||
|
||||
//
|
||||
// Other modules
|
||||
//
|
||||
case 'events-admin':
|
||||
case 'events':
|
||||
case 'events-post':
|
||||
case 'classified-admin':
|
||||
case 'classified-subcats':
|
||||
case 'classified':
|
||||
case 'classified-post':
|
||||
case 'forums-admin':
|
||||
case 'forums':
|
||||
if ($school_record['other_modules'] == 'N') $action = "";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// Process required actions
|
||||
//
|
||||
switch (strtolower($action)) {
|
||||
case 'suppliers':
|
||||
if (is_file("suppliers.update.php")) include "suppliers.update.php";
|
||||
break;
|
||||
|
||||
case 'events-post':
|
||||
include "events.update.php";
|
||||
break;
|
||||
|
||||
case 'classified-post':
|
||||
include "classified.update.php";
|
||||
break;
|
||||
|
||||
case 'gallery-categories':
|
||||
include "photo_gallery_categories.update.php";
|
||||
break;
|
||||
|
||||
case 'photo-gallery-images':
|
||||
include "photo_gallery_images.update.php";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user