diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-23 20:00:49 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-23 20:00:49 -0400 |
commit | 84677257549c3e574440893aab19d05611d9afc1 (patch) | |
tree | dddb813b47e7cc552575f5ee50136b272d1dafd7 /usr/local/www | |
parent | b31da21e9ebfb1f1c78ad4e8d8418d23db43a817 (diff) | |
download | pfsense-84677257549c3e574440893aab19d05611d9afc1.zip pfsense-84677257549c3e574440893aab19d05611d9afc1.tar.gz |
Move functions to pfsense-utils.inc since they can be called from either console or gui side
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 1459a40..9880f7f 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -910,50 +910,6 @@ function add_package_tabs($tabgroup, & $tab_array) { } } -/* - * update_output_window: update bottom textarea dynamically. - */ -function update_output_window($text) { - global $pkg_interface; - $log = ereg_replace("\n", "\\n", $text); - if($pkg_interface == "console") { - /* too chatty */ - } else { - echo "\n<script language=\"JavaScript\">this.document.forms[0].output.value = \"" . $log . "\";</script>"; - } - /* ensure that contents are written out */ - ob_flush(); -} - -/* - * update_output_window: update top textarea dynamically. - */ -function update_status($status) { - global $pkg_interface; - if($pkg_interface == "console") { - echo $status . "\n"; - } else { - echo "\n<script type=\"text/javascript\">this.document.forms[0].status.value=\"" . $status . "\";</script>"; - } - /* ensure that contents are written out */ - ob_flush(); -} - -/* - * update_progress_bar($percent): updates the javascript driven progress bar. - */ -function update_progress_bar($percent) { - global $pkg_interface; - if($percent > 100) $percent = 1; - if($pkg_interface <> "console") { - echo "\n<script type=\"text/javascript\" language=\"javascript\">"; - echo "\ndocument.progressbar.style.width='" . $percent . "%';"; - echo "\n</script>"; - } else { - echo " {$percent}%"; - } -} - function rule_popup($src,$srcport,$dst,$dstport){ global $config; $aliases_array = array(); |