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 Fix Tool</h2>\n"); |
printf("<h2>CourseLib/PageScribe Page Fix Tool</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 |
// Fix Tool |
// Fix Tool |
63 |
scribeFix($con, $method, $page_id); |
scribeFix($method, $page_id); |
64 |
|
|
65 |
} |
} |
66 |
else printf("Page %s not found!", $page_id); |
else printf("Page %s not found!", $page_id); |