From 03d6589fefd850f793215cb6805c0f0c0989f93f Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 20 Dec 2008 21:15:56 -0500 Subject: Added HG Update to Admin Now, changes can be remotely pushed to the central repository and updated using the Admin panel. --- includes/bbcode.php | 1 + pages/admin.php | 9 +++++++++ theme/admin/index.tpl | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/includes/bbcode.php b/includes/bbcode.php index 4dbb933..69e89e3 100755 --- a/includes/bbcode.php +++ b/includes/bbcode.php @@ -52,6 +52,7 @@ class BBCode $this->bbcodes2['abbr'] = '{CONTENT}'; $this->bbcodes['hidden'] = '{CONTENT}'; $this->bbcodes['thumb'] = ''; + $this->bbcodes['thumb2'] = ''; $this->init = true; } diff --git a/pages/admin.php b/pages/admin.php index 90e540a..579feed 100755 --- a/pages/admin.php +++ b/pages/admin.php @@ -683,6 +683,15 @@ if (isLoggedIn()) $template->add('BACK', 'the previous page'); $template->add('MSG', 'I\'m sorry, but this pending quote doesn\'t exist.'); } + } else if ($_GET['page'] == 'hgUpdate') + { + $template = new FITemplate('msg'); + $template->add('BACK', 'the Admin Panel'); + + ob_start(); + system('hg update'); + $template->add('MSG', ob_get_contents()); + ob_end_clean(); } else { generateError(404); } diff --git a/theme/admin/index.tpl b/theme/admin/index.tpl index c39a380..66fbae3 100755 --- a/theme/admin/index.tpl +++ b/theme/admin/index.tpl @@ -23,3 +23,9 @@ Welcome to the ubiquitous administration panel!

+ +

Administration

+ + -- cgit 1.4.1