diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2008-12-20 21:15:56 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2008-12-20 21:15:56 -0500 |
commit | 03d6589fefd850f793215cb6805c0f0c0989f93f (patch) | |
tree | acead1c8c7fa4539dc78a21b66d023ea871352f4 /pages | |
parent | 79b46038a7fa8467ed41333a80f88d5279b32153 (diff) | |
download | fourisland-03d6589fefd850f793215cb6805c0f0c0989f93f.tar.gz fourisland-03d6589fefd850f793215cb6805c0f0c0989f93f.tar.bz2 fourisland-03d6589fefd850f793215cb6805c0f0c0989f93f.zip |
Added HG Update to Admin
Now, changes can be remotely pushed to the central repository and updated using the Admin panel.
Diffstat (limited to 'pages')
-rwxr-xr-x | pages/admin.php | 9 |
1 files changed, 9 insertions, 0 deletions
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()) | |||
683 | $template->add('BACK', 'the previous page'); | 683 | $template->add('BACK', 'the previous page'); |
684 | $template->add('MSG', 'I\'m sorry, but this pending quote doesn\'t exist.'); | 684 | $template->add('MSG', 'I\'m sorry, but this pending quote doesn\'t exist.'); |
685 | } | 685 | } |
686 | } else if ($_GET['page'] == 'hgUpdate') | ||
687 | { | ||
688 | $template = new FITemplate('msg'); | ||
689 | $template->add('BACK', 'the Admin Panel'); | ||
690 | |||
691 | ob_start(); | ||
692 | system('hg update'); | ||
693 | $template->add('MSG', ob_get_contents()); | ||
694 | ob_end_clean(); | ||
686 | } else { | 695 | } else { |
687 | generateError(404); | 696 | generateError(404); |
688 | } | 697 | } |