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. --- pages/admin.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pages/admin.php') 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); } -- cgit 1.4.1