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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 73 - (hide annotations)
Thu Mar 18 21:27:37 2004 UTC (20 years, 1 month ago) by dpavlin
File size: 1728 byte(s)
sync trunk to HEAD of pear-db (without changes specific to PEAR which will be dropped)

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 dpavlin 73 require_once ("db_connect.php");
9 dpavlin 1 require_once ($GLOBAL_ADMIN_INC."app_controls.php");
10     require_once ($GLOBAL_ADMIN_INC."scribe_application.php");
11     require_once ($GLOBAL_ADMIN_INC."scribe_fix.php");
12    
13     // HTML header
14     printf("<HTML>\n");
15     printf("<HEAD>\n");
16     printf("<title>CourseLib/PageScribe Page Fix Tool</title>\n");
17     printf("<link rel=\"stylesheet\" href=\"%s\" type=\"text/css\">\n", $GLOBAL_ADMIN_CSS);
18     printf("</HEAD>\n");
19    
20    
21     // Page header
22     require_once ($GLOBAL_ADMIN_HEADER);
23    
24    
25     // Collect access information
26     if (isset($libsession)) {
27    
28     // Fetch session information
29     $sessionClass = new sessionClass("", $libsession, "", "");
30     $accessClass = new accessClass($sessionClass);
31    
32     // Load user session variables
33     $sess_time_human = $sessionClass->time_human;
34     $sess_staff_account = $sessionClass->staff_account;
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     // cookie must be set
43     if(isset($libsession) && $sess_access_level >= 1000) {
44    
45     printf("<h2>CourseLib/PageScribe Page Fix Tool</h2>\n");
46    
47     // Determine if page exists
48     $exists = existsRow($con, "page", "page_id", $page_id);
49    
50     if ($exists == 1){
51    
52     // Fix Tool
53     scribeFix($con, $method, $page_id);
54    
55     }
56     else printf("Page %s not found!", $page_id);
57    
58    
59     // Link to return to admin console
60     adminReturn($sess_access_level);
61    
62     } // logged in
63    
64     // No access
65     else require_once ($GLOBAL_NO_ACCESS);
66    
67     // Page footer
68     require_once ($GLOBAL_ADMIN_FOOTER);
69     ?>
70    
71     </body>
72     </html>

  ViewVC Help
Powered by ViewVC 1.1.26