/[libdata]/trunk/admin/update.phtml
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/admin/update.phtml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Fri Dec 5 18:34:18 2003 UTC (20 years, 3 months ago) by dpavlin
File size: 3607 byte(s)
Initial revision

1 <?php
2 // Load globals
3 require_once ("global_vars.php");
4
5 // Includes
6 require_once ($GLOBAL_ADMIN_INC."sessionClass.php");
7 require_once ($GLOBAL_ADMIN_INC."accessClass.php");
8 require_once ($GLOBAL_ADMIN_INC."db_connect.php");
9 require_once ($GLOBAL_ADMIN_INC."app_controls.php");
10 require_once ($GLOBAL_ADMIN_INC."update.php");
11 require_once ($GLOBAL_ADMIN_INC."forms.php");
12
13
14
15 // HTML header
16 printf("<HTML>\n");
17 printf("<HEAD>\n");
18 printf("<title>Administrative Functions</title>\n");
19 printf("<link rel=\"stylesheet\" href=\"%s\" type=\"text/css\">\n", $GLOBAL_ADMIN_CSS);
20 printf("</HEAD>\n");
21
22
23 // Page header
24 require_once ($GLOBAL_ADMIN_HEADER);
25
26
27 // Collect access information
28 if (isset($libsession)) {
29
30 // Fetch session information
31 $sessionClass = new sessionClass("", $libsession, "", "");
32 $accessClass = new accessClass($sessionClass);
33
34 // Load user session variables
35 $sess_time_human = $sessionClass->time_human;
36 $sess_staff_account = $sessionClass->staff_account;
37 $sess_access_level = $accessClass->access_level;
38 $sess_access = $accessClass->access;
39 $sess_last_name = $accessClass->last_name;
40 $sess_first_name = $accessClass->first_name;
41
42 }
43
44
45 // If the cookie is set and access level is appropriate
46 if(isset($libsession) && $sess_access_level >= 20) {
47
48 // Determine which transaction function to call
49 switch ($transaction){
50
51 // Updates
52 case "updateCoursesub":
53 updateCoursesub($con, $campus_id, $cip_code, $coursesub, $coursesub_descr, $coursesub_id);
54 break;
55 case "updateFaculty":
56 updateFaculty($con, $faculty_email, $faculty_firstname, $faculty_id,
57 $faculty_lastname, $faculty_account);
58 break;
59 case "updateFeature":
60 updateFeature($con, $feature, $feature_id, $image_alt, $image_path);
61 break;
62 case "updateInfotype":
63 updateInfotype($con, $infotype, $infotype_id, $masterinfotype_id, $mastersubject_id);
64 break;
65 case "updateLibunit":
66 updateLibunit($con, $head_staff_id, $libunit, $libunit_abbrev, $libunit_id);
67 break;
68 case "updateLocation":
69 updateLocation($con, $address1, $address2, $address3, $address4, $campus,
70 $hoursURL, $location, $location_descr, $location_id, $mainURL, $mapURL, $referenceURL, $telephone);
71 break;
72 case "updatePassword":
73 updatePassword($con, $password, $password_confirm, $staff_id);
74 break;
75 case "updateResource":
76 updateResource($con, $annotation, $author, $call_no, $cat_num, $coverage_detail,
77 $edition, $infotype_id, $key_id, $other_title, $pub_date, $publisher,
78 $sess_staff_account, $sources_indexed, $title, $url);
79 break;
80 case "updateService":
81 updateService($con, $address1, $address2, $address3, $address4, $email, $fax,
82 $nonaff, $service, $serviceDescr, $service_id, $serviceURL, $telephone);
83 break;
84 case "updateSingleField":
85 updateSingleField($con, $display, $display_field, $key_field,
86 $key_id, $newValue, $table);
87 break;
88 case "updateStaff":
89 updateStaff($con, $access_id, $first_name, $last_name, $sess_access_level,
90 $staff_account, $staff_email, $staff_id, $stafftitle_id);
91 break;
92 case "updateStyle":
93 updateStyle($con, $css_file, $footer_file, $header_file, $style_id, $style_title);
94 break;
95 case "updateSubject":
96 updateSubject($con, $subject, $subject_descr, $subject_id, $sublocation_id);
97 break;
98
99 // Other functions
100 case "purgePassword":
101 purgePassword($con, $staff_id);
102 break;
103 }
104
105 // Link to return to admin console
106 adminReturn($sess_access_level);
107
108 } // logged in
109
110 // No access
111 else require_once ($GLOBAL_NO_ACCESS);
112
113 // Page footer
114 require_once ($GLOBAL_ADMIN_FOOTER);
115 ?>
116
117 </body>
118 </html>

  ViewVC Help
Powered by ViewVC 1.1.26