-
-
No filter id specified.
';
- } else {
- $filter = new ZM\Filter($_REQUEST['fid']);
- if ( ! $filter->Id() ) {
- echo '
Filter not found for id '.$_REQUEST['fid'].'
';
- }
- }
+
+// Returns the modal html representing the selected Option Help item
+if ( empty($_REQUEST['ohndx']) ) {
+ ajaxError('Option Help Index Not Provided');
+ return;
+}
+
+global $OLANG;
+$result = '';
+$optionHelpIndex = $_REQUEST['ohndx'];
+$ZMoptionHelpIndex = 'ZM_'.$optionHelpIndex;
+
+if ( !empty($OLANG[$optionHelpIndex]) ) {
+ $optionHelpText = $OLANG[$optionHelpIndex]['Help'];
+} else {
+ $optionHelpText = dbFetchOne('SELECT Help FROM Config WHERE Name=?', 'Help', array($optionHelpIndex));
+}
+$optionHelpText = validHtmlStr($optionHelpText);
+$optionHelpText = preg_replace('/~~/', '
', $optionHelpText );
+$optionHelpText = preg_replace('/\[(.+)\]\((.+)\)/', '
$1', $optionHelpText);
+
?>
-
+
+
diff --git a/web/ajax/modals/optionhelp.php b/web/ajax/modals/optionhelp.php
new file mode 100644
index 000000000..424354dd2
--- /dev/null
+++ b/web/ajax/modals/optionhelp.php
@@ -0,0 +1,43 @@
+', $optionHelpText );
+$optionHelpText = preg_replace('/\[(.+)\]\((.+)\)/', '
$1', $optionHelpText);
+
+?>
+
+
diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php
index aefa5f52c..29d4b9cbb 100644
--- a/web/skins/classic/includes/functions.php
+++ b/web/skins/classic/includes/functions.php
@@ -754,42 +754,6 @@ function runtimeStatus($running=null) {
return $running ? ($state ? $state : translate('Running')) : translate('Stopped');
}
-// Returns the modal html representing the selected Option Help item
-function getOptionHelpHTML($optionHelpIndex, $OLANG) {
- $result = '';
- $ZMoptionHelpIndex = 'ZM_'.$optionHelpIndex;
-
- if ( !empty($OLANG[$optionHelpIndex]) ) {
- $optionHelpText = $OLANG[$optionHelpIndex]['Help'];
- } else {
- $optionHelpText = dbFetchOne('SELECT Help FROM Config WHERE Name=?', 'Help', array($optionHelpIndex));
- }
- $optionHelpText = validHtmlStr($optionHelpText);
- $optionHelpText = preg_replace('/~~/', '
', $optionHelpText );
- $optionHelpText = preg_replace('/\[(.+)\]\((.+)\)/', '
$1', $optionHelpText);
-
- $result .= '
'.PHP_EOL;
- $result .= '
'.PHP_EOL;
- $result .= '
'.PHP_EOL;
- $result .= ''.PHP_EOL;
- $result .= '
'.PHP_EOL;
- $result .= '
' .validHtmlStr($optionHelpIndex). '
'.PHP_EOL;
- $result .= '
' .$optionHelpText. '
'.PHP_EOL;
- $result .= '
'.PHP_EOL;
- $result .= ''.PHP_EOL;
- $result .= '
'.PHP_EOL;
- $result .= '
'.PHP_EOL;
- $result .= '
'.PHP_EOL;
- return $result;
-}
-
// Return an Error No Permissions Modal
function getENoPermHTML() {
$result = '';