/[libdata]/branches/paul/admin/console_dba.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

Annotation of /branches/paul/admin/console_dba.phtml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 67 - (hide annotations)
Thu Mar 18 19:24:54 2004 UTC (20 years, 2 months ago) by dpavlin
File size: 3180 byte(s)
updated to libdata 2.00

1 dpavlin 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    
11    
12     // HTML header
13     printf("<HTML>\n");
14     printf("<HEAD>\n");
15     printf("<title>DBA Tools</title>\n");
16     printf("<link rel=\"stylesheet\" href=\"%s\" type=\"text/css\">\n", $GLOBAL_ADMIN_CSS);
17     printf("</HEAD>\n");
18    
19    
20 dpavlin 67 // Default access settings
21     $sess_time_human = "";
22     $sess_staff_account = "";
23     $sess_staff_id = 0;
24     $sess_access_level = 0;
25     $sess_access = "";
26     $sess_last_name = "";
27     $sess_first_name = "";
28    
29    
30 dpavlin 1 // Page header
31     require_once ($GLOBAL_ADMIN_HEADER);
32    
33    
34     // Collect access information
35     if (isset($libsession)) {
36    
37     // Fetch session information
38     $sessionClass = new sessionClass("", $libsession, "", "");
39     $accessClass = new accessClass($sessionClass);
40    
41     // Load user session variables
42     $sess_time_human = $sessionClass->time_human;
43     $sess_staff_account = $sessionClass->staff_account;
44     $sess_staff_id = $accessClass->staff_id;
45     $sess_access_level = $accessClass->access_level;
46     $sess_access = $accessClass->access;
47     $sess_last_name = $accessClass->last_name;
48     $sess_first_name = $accessClass->first_name;
49    
50     }
51    
52    
53     // DBA tools: If the cookie is set and access level is DBA (1000) allow tools
54     if(isset($libsession) && $sess_access_level == 1000) {
55    
56     printf("<h3>DBA Tools</h3>\n");
57     printf("<i>Available to Database Administrators only</i><br><br>\n");
58     printf("<table border=\"1\" cellpadding = \"4\" cellspacing=\"0\" class= \"backLight\" width=\"750\">\n");
59    
60     // RQS <-> Subject CIP crosswalk
61     printf("<tr><td colspan = \"3\">\n");
62     printf("<b><a href=\"rqscip_crosswalk.phtml\">RQS Subject <-> CIP Code Crosswalk</a>");
63     printf("</td></tr>\n");
64    
65     // Resources lacking default information types
66     printf("<tr><td colspan = \"3\">\n");
67     printf("<b><a href=\"lacking_infotype.phtml\">Resources Lacking Default Information Types</a></b>");
68     printf("</td></tr>\n");
69    
70     // System status
71     printf("<tr><td colspan=\"3\">\n");
72     printf("<b><a href=\"system_status.phtml\">%s System Status</a></b>", $GLOBAL_SYS_NAME);
73     printf("</td></tr>\n");
74    
75     // CourseLib Debugger
76     printf("<tr>");
77     printf("<form method=\"post\" action=\"scribe_debug.phtml\">");
78     printf("<td valign=\"top\"><b>CourseLib Debugger</b></td>\n");
79     printf("<td><select name=\"page_id\">");
80 dpavlin 67 dropDownCourses();
81 dpavlin 1 printf("</select></td>\n");
82     printf("<td><input type=\"submit\" value=\"Debug\">");
83     printf("</td></tr></form>\n");
84    
85     // PageScribe Page Debugger
86     printf("<tr>");
87     printf("<form method=\"post\" action=\"scribe_debug.phtml\">");
88     printf("<td valign=\"top\"><b>PageScribe Debugger</b></td>");
89     printf("<td><select name=\"page_id\">");
90 dpavlin 67 dropDownFieldOmit("page", "page_title", "page_id", " WHERE pagetype_id = 2");
91 dpavlin 1 printf("</select></td>\n");
92     printf("<td><input type=\"submit\" value=\"Debug\">");
93     printf("</td></tr></form>\n");
94    
95     printf("</table>\n");
96    
97    
98     adminReturn($sess_access_level);
99    
100     } // logged in user
101    
102     // No access page
103     else require_once ($GLOBAL_NO_ACCESS);
104    
105    
106     // Page footer
107     require_once ($GLOBAL_ADMIN_FOOTER);
108     ?>
109    
110     </center>
111     </HTML>
112    

  ViewVC Help
Powered by ViewVC 1.1.26