/wiki/pages/Index.txt | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0,0 → 1,9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[b]Welcome to the Tim32 Wiki![/b] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Here you can talk about pretty much anything! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[b]Some interesting links[/b] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ul] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[li][url=index.php?page=Comics]Comics[/url][/li] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[/ul] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property changes: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: svn:executable | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
## -0,0 +1 ## | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+* | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
\ No newline at end of property | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: wiki/index.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- wiki/index.php (revision 130) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ wiki/index.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -1,14 +1,64 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page = new Taios_Page('Wiki', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-write(' This page is currently under construction. '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+function endswith($string, $test) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $strlen = strlen($string); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $testlen = strlen($test); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ if ($testlen > $strlen) return false; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ return substr_compare($string, $test, -$testlen) === 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$pageName = $_GET['page']; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if (empty($pageName)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $pageName = 'Index'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page = new Taios_Page('Wiki - ' . $pageName, '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if (isset($_GET['random'])) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $results = array(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $handler = opendir('pages/'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ while ($file = readdir($handler)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ if ($file != '.' && $file != '..' && endswith($file, ".txt")) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $results[] = substr($file, 0, count($file) - 5); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $index = rand() % count($results); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $result = $results[$index]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->redirect('index.php?page=' . $result); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+write('Wiki'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawMenuItem('Index', 'wiki/index.php'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawMenuItem('Random Page', 'wiki/index.php?random'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if ($page->isUserGM($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write(' '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$filename = 'pages/' . $pageName . '.txt'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$fp = @fopen($filename, 'r'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if ($fp) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write(' ' . $page->replaceBBCode(fread($fp, filesize($filename))) . ' '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ fclose($fp); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write(' This page is empty. '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: wiki/edit-do.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- wiki/edit-do.php (nonexistent) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ wiki/edit-do.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -0,0 +1,40 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$pageName = $_POST['page']; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if (empty($pageName)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $pageName = 'Index'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page = new Taios_Page('Edit Page - ' . $pageName, '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if ($page->isUserGM($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $filename = 'pages/' . $pageName . '.txt'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $fp = @fopen($filename, 'w'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ if ($fp) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ fwrite($fp, $_POST['content']); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ fclose($fp); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->redirect('index.php?page=' . $pageName); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('Failed to write file.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: wiki/edit.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- wiki/edit.php (nonexistent) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ wiki/edit.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -0,0 +1,54 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$pageName = $_GET['page']; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if (empty($pageName)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $pageName = 'Index'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page = new Taios_Page('Edit Page - ' . $pageName, '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if ($page->isUserGM($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $filename = 'pages/' . $pageName . '.txt'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $content = ""; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $fp = @fopen($filename, 'r'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ if ($fp) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $content = fread($fp, filesize($filename)); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ fclose($fp); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: admin/all-blog-posts.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- admin/all-blog-posts.php (revision 130) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ admin/all-blog-posts.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -1,60 +1,64 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page = new Taios_Page('Manage All Blog Posts', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-if ($page->isUserAdmin($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- write(' Use this to manage all the blog posts on the Tim32 Website. '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- write('
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page = new Taios_Page('Manage All Blog Posts', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if ($page->isUserAdmin($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write(' Use this to manage all the blog posts on the Tim32 Website. '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write('
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: admin/all-accounts.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- admin/all-accounts.php (revision 130) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ admin/all-accounts.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -1,51 +1,51 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page = new Taios_Page('Manage All Accounts', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-if ($page->isUserAdmin($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- write(' Use this to manage all the accounts on the Tim32 Website. '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- write('
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page = new Taios_Page('Manage All Accounts', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if ($page->isUserAdmin($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write(' Use this to manage all the accounts on the Tim32 Website. '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write('
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: admin/all-forum-posts.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- admin/all-forum-posts.php (nonexistent) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ admin/all-forum-posts.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -0,0 +1,67 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page = new Taios_Page('Manage All Forum Posts', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if ($page->isUserAdmin($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write(' Use this to manage all the forum categories on the Tim32 Website. '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write('
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: admin/all-forum-categories.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- admin/all-forum-categories.php (nonexistent) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ admin/all-forum-categories.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -0,0 +1,52 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page = new Taios_Page('Manage All Forum Categories', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if ($page->isUserAdmin($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write(' Use this to manage all the forum categories on the Tim32 Website. '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write('
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: admin/index.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- admin/index.php (revision 130) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ admin/index.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -1,27 +1,26 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page = new Taios_Page('Administration', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$user = $page->getLoggedInUser(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-write('Manage Account'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-if ($page->isUserAdmin($user)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- write('Manage All Accounts'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- write('Manage All Blog Posts'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- write('Manage All Projects'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- write('Manage All Forum Categories'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- write('Manage All Forum Topics'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- write('Manage All Forum Posts'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page = new Taios_Page('Administration', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$user = $page->getLoggedInUser(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+write('Manage Account'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if ($page->isUserAdmin($user)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write('Manage All Accounts'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write('Manage All Blog Posts'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write('Manage All Projects'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write('Manage All Forum Categories'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write('Manage All Forum Posts'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: admin/all-projects.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- admin/all-projects.php (nonexistent) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ admin/all-projects.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -0,0 +1,55 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page = new Taios_Page('Manage All Projects', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if ($page->isUserAdmin($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write(' Use this to manage all the projects on the Tim32 Website. '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write('
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: admin/account.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- admin/account.php (revision 130) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ admin/account.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -1,60 +1,60 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page = new Taios_Page('Manage Account', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$userID = $page->getGetID(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$user = $page->getUserByID($userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-if (($page->getLoggedInUser()->ID == $userID || $page->isUserAdmin($page->getLoggedInUser())) && $user) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Here you can edit your account. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Only change the password value if you want to change your password. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- if (!$user) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- drawError('No such user, #' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page = new Taios_Page('Manage Account', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawHeader(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawMiddle(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$userID = $page->getGetID(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$user = $page->getUserByID($userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if (($page->getLoggedInUser()->ID == $userID || $page->isUserAdmin($page->getLoggedInUser())) && $user) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ Here you can edit your account. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ Only change the password value if you want to change your password. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ if (!$user) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('No such user, #' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->drawFooter(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: admin/account-do.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- admin/account-do.php (revision 130) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ admin/account-do.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -1,53 +1,53 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page = new Taios_Page('Update Account', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$userID = $page->getPostID(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$accessID = $_POST['accessID']; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$password = $_POST['password']; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$email = $_POST['email']; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$name = $_POST['name']; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$user = $page->getUserByID($userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-if (($page->getLoggedInUser()->ID == $userID || $page->isUserAdmin($page->getLoggedInUser())) && $user) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- if (isset($accessID) && $page->isUserAdmin($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- $page->query('UPDATE Users SET AccessID = "' . $accessID . '" WHERE ID = ' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- if (!empty($password)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- $page->query('UPDATE Users SET Password = "' . sha1($password) . '" WHERE ID = ' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- if (!empty($email)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- $page->query('UPDATE Users SET EmailAddress = "' . $email . '" WHERE ID = ' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- if (!empty($name)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- $page->query('UPDATE Users SET Name = "' . $name . '" WHERE ID = ' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- if (!$user) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- drawError('No such user, #' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-$page->redirect('account.php?id=' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+require '../_taios.php'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page = new Taios_Page('Update Account', '../'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$userID = $page->getPostID(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->checkLoggedIn(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$accessID = $_POST['accessID']; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$password = $_POST['password']; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$email = $_POST['email']; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$name = $_POST['name']; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$user = $page->getUserByID($userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+if (($page->getLoggedInUser()->ID == $userID || $page->isUserAdmin($page->getLoggedInUser())) && $user) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ if (isset($accessID) && $page->isUserAdmin($page->getLoggedInUser())) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->query('UPDATE Users SET AccessID = "' . $accessID . '" WHERE ID = ' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ if (!empty($password)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->query('UPDATE Users SET Password = "' . sha1($password) . '" WHERE ID = ' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ if (!empty($email)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->query('UPDATE Users SET EmailAddress = "' . $email . '" WHERE ID = ' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ if (!empty($name)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->query('UPDATE Users SET Name = "' . $name . '" WHERE ID = ' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ if (!$user) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('No such user, #' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ $page->drawError('You do not have permission to access this page.'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+$page->redirect('account.php?id=' . $userID); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Index: _taios.php | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
=================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--- _taios.php (revision 130) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+++ _taios.php (revision 469) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -34,7 +34,8 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
write(''); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
write(''); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
write(' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- write(''); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write(''); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write(''); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
write(''); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
write(''); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
write(' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -88,6 +89,7 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
if (!$this->drawnFooter) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ write(' Tim32 '); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
write(''); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
write(''); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
write(' |