/[libdata]/trunk/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 /trunk/admin/console_dba.phtml

Parent Directory Parent Directory | Revision Log Revision Log


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

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

  ViewVC Help
Powered by ViewVC 1.1.26