18 |
printf("</HEAD>\n"); |
printf("</HEAD>\n"); |
19 |
|
|
20 |
|
|
21 |
|
// Default access settings |
22 |
|
$sess_time_human = ""; |
23 |
|
$sess_staff_account = ""; |
24 |
|
$sess_staff_id = 0; |
25 |
|
$sess_access_level = 0; |
26 |
|
$sess_access = ""; |
27 |
|
$sess_last_name = ""; |
28 |
|
$sess_first_name = ""; |
29 |
|
|
30 |
|
|
31 |
// Page header |
// Page header |
32 |
require_once ($GLOBAL_ADMIN_HEADER); |
require_once ($GLOBAL_ADMIN_HEADER); |
33 |
|
|
55 |
printf("<h2>CourseLib/PageScribe Page Debugger</h2>\n"); |
printf("<h2>CourseLib/PageScribe Page Debugger</h2>\n"); |
56 |
|
|
57 |
// Determine if page exists |
// Determine if page exists |
58 |
$exists = existsRow($con, "page", "page_id", $page_id); |
$exists = existsRow("page", "page_id", $page_id); |
59 |
|
|
60 |
if ($exists == 1){ |
if ($exists == 1){ |
61 |
|
|
62 |
// Debugger |
// Debugger |
63 |
$passed = errorTrap($con, $page_id); |
$passed = errorTrap($page_id); |
64 |
|
|
65 |
} |
} |
66 |
else printf("Page %s not found!", $page_id); |
else printf("Page %s not found!", $page_id); |
71 |
|
|
72 |
printf("<br><br><center>\n"); |
printf("<br><br><center>\n"); |
73 |
printf("<table width=\"90%%\" class=\"backLight\" border=\"1\">\n"); |
printf("<table width=\"90%%\" class=\"backLight\" border=\"1\">\n"); |
74 |
printf("<tr><td class=\"cellPlain\">Error(s) Found (#%d)</td></tr>\n", $page_id); |
printf("<tr><td class=\"cellPlain\">Error(s) Found on Page (ID# %d)</td></tr>\n", $page_id); |
75 |
printf("<tr><td><br>\n"); |
printf("<tr><td><br>\n"); |
76 |
printf("<b>Page Fix Options</b><br>\n"); |
printf("<b>Page Fix Options</b><br>\n"); |
77 |
printf("Note: the following options range from least to most destructive. It is "); |
printf("Note: the following options range from least to most destructive. It is "); |