| verzia 1.225, 2017/11/08 05:27:43 |
verzia 1.226, 2024/11/11 08:17:55 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.224 2017/11/07 08:51:38 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.225 2017/11/08 05:27:43 nepto Exp $ */ |
| |
|
| /* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
| edited are defined in the calling program. |
edited are defined in the calling program. |
| Riadok 216 class phpMyEdit |
|
| Riadok 216 class phpMyEdit |
|
| function nav_buttons() { return stristr($this->navigation, 'B'); } |
function nav_buttons() { return stristr($this->navigation, 'B'); } |
| function nav_text_links() { return stristr($this->navigation, 'T'); } |
function nav_text_links() { return stristr($this->navigation, 'T'); } |
| function nav_graphic_links() { return stristr($this->navigation, 'G'); } |
function nav_graphic_links() { return stristr($this->navigation, 'G'); } |
| function nav_up() { return (stristr($this->navigation, 'U') && !($this->buttons[$this->page_type]['up'] === false)); } |
function nav_up() { return (stristr($this->navigation, 'U') && !($this->buttons[$this->page_type]['up'] ?? true === false)); } |
| function nav_down() { return (stristr($this->navigation, 'D') && !($this->buttons[$this->page_type]['down'] === false)); } |
function nav_down() { return (stristr($this->navigation, 'D') && !($this->buttons[$this->page_type]['down'] ?? true === false)); } |
| |
|
| /* |
/* |
| * functions for indicating whether operations are enabled |
* functions for indicating whether operations are enabled |
| Riadok 299 class phpMyEdit |
|
| Riadok 299 class phpMyEdit |
|
| ($this->filter_operation() && stristr($options, 'F')) || |
($this->filter_operation() && stristr($options, 'F')) || |
| ($this->list_operation() && stristr($options, 'L')); |
($this->list_operation() && stristr($options, 'L')); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| function debug_var($name, $val) /* {{{ */ |
function debug_var($name, $val) /* {{{ */ |
| { |
{ |
| if (is_array($val) || is_object($val)) { |
if (is_array($val) || is_object($val)) { |
| Riadok 333 class phpMyEdit |
|
| Riadok 333 class phpMyEdit |
|
| : @mysql_connect($this->hn, $this->un, $this->pw, false, $flags); |
: @mysql_connect($this->hn, $this->un, $this->pw, false, $flags); |
| } |
} |
| } /* }}} */ |
} /* }}} */ |
| |
|
| |
|
| function sql_disconnect() /* {{{ */ |
function sql_disconnect() /* {{{ */ |
| { |
{ |
| Riadok 456 class phpMyEdit |
|
| Riadok 456 class phpMyEdit |
|
| return $ret; |
return $ret; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| /* end of sql functions */ |
/* end of sql functions */ |
| |
|
| function make_language_labels($language) /* {{{ */ |
function make_language_labels($language) /* {{{ */ |
| { |
{ |
| Riadok 496 class phpMyEdit |
|
| Riadok 496 class phpMyEdit |
|
| |
|
| function set_values($field_num, $prepend = null, $append = null, $strict = false) /* {{{ */ |
function set_values($field_num, $prepend = null, $append = null, $strict = false) /* {{{ */ |
| { |
{ |
| return (array) $prepend + (array) $this->fdd[$field_num]['values2'] |
return (array) $prepend + (array) ($this->fdd[$field_num]['values2'] ?? array()) |
| + (isset($this->fdd[$field_num]['values']['table']) || $strict |
+ (isset($this->fdd[$field_num]['values']['table']) || $strict |
| ? $this->set_values_from_table($field_num, $strict) |
? $this->set_values_from_table($field_num, $strict) |
| : array()) |
: array()) |
| Riadok 528 class phpMyEdit |
|
| Riadok 528 class phpMyEdit |
|
| $qparts['select'] .= ','; |
$qparts['select'] .= ','; |
| } |
} |
| } |
} |
| $qparts['select']{strlen($qparts['select']) - 1} = ')'; |
$qparts['select'][strlen($qparts['select']) - 1] = ')'; |
| $qparts['select'] .= ' AS '.$this->sd.'PMEalias'.$field_num.$this->ed; |
$qparts['select'] .= ' AS '.$this->sd.'PMEalias'.$field_num.$this->ed; |
| $qparts['orderby'] = $this->sd.'PMEalias'.$field_num.$this->ed; |
$qparts['orderby'] = $this->sd.'PMEalias'.$field_num.$this->ed; |
| } else if ($desc && is_array($desc)) { |
} else if ($desc && is_array($desc)) { |
| Riadok 542 class phpMyEdit |
|
| Riadok 542 class phpMyEdit |
|
| $qparts['from'] = $dbp.$table; |
$qparts['from'] = $dbp.$table; |
| $ar = array( |
$ar = array( |
| 'table' => $table, |
'table' => $table, |
| 'column' => $column, |
'column' => $key, // OLD: $column, |
| 'description' => $desc); |
'description' => $desc); |
| $qparts['where'] = $this->substituteVars($this->fdd[$field_num]['values']['filters'], $ar); |
$qparts['where'] = $this->substituteVars($this->fdd[$field_num]['values']['filters'], $ar); |
| if ($this->fdd[$field_num]['values']['orderby']) { |
if ($this->fdd[$field_num]['values']['orderby'] ?? false) { |
| $qparts['orderby'] = $this->substituteVars($this->fdd[$field_num]['values']['orderby'], $ar); |
$qparts['orderby'] = $this->substituteVars($this->fdd[$field_num]['values']['orderby'], $ar); |
| } |
} |
| } else { /* simple value extraction */ |
} else { /* simple value extraction */ |
| Riadok 592 class phpMyEdit |
|
| Riadok 592 class phpMyEdit |
|
| $ret .= ','; |
$ret .= ','; |
| } |
} |
| } |
} |
| $ret{strlen($ret) - 1} = ')'; |
$ret[strlen($ret) - 1] = ')'; |
| } else if (is_array($desc)) { |
} else if (is_array($desc)) { |
| // TODO |
// TODO |
| } else { |
} else { |
| Riadok 879 class phpMyEdit |
|
| Riadok 879 class phpMyEdit |
|
| $ids = array(); |
$ids = array(); |
| $ar = array(); |
$ar = array(); |
| $ar[$this->fqn($k)] = array('oper' => 'LIKE', 'value' => "'$afilter'"); |
$ar[$this->fqn($k)] = array('oper' => 'LIKE', 'value' => "'$afilter'"); |
| if (is_array($this->fdd[$k]['values2'])) { |
if (is_array($this->fdd[$k]['values2'] ?? null)) { |
| foreach ($this->fdd[$k]['values2'] as $key => $val) { |
foreach ($this->fdd[$k]['values2'] as $key => $val) { |
| if (strlen($m) > 0 && stristr($val, $m)) { |
if (strlen($m) > 0 && stristr($val, $m)) { |
| $ids[] = '"'.addslashes($key).'"'; |
$ids[] = '"'.addslashes($key).'"'; |
| Riadok 1130 function '.$this->js['prefix'].'filter_h |
|
| Riadok 1130 function '.$this->js['prefix'].'filter_h |
|
| continue; |
continue; |
| } |
} |
| if ($this->hidden($k)) { |
if ($this->hidden($k)) { |
| echo $this->htmlHiddenData($this->fds[$k], $this->fdd[$k]['default']); |
echo $this->htmlHiddenData($this->fds[$k], $this->fdd[$k]['default'] ?? null); |
| continue; |
continue; |
| } |
} |
| $css_postfix = @$this->fdd[$k]['css']['postfix']; |
$css_postfix = @$this->fdd[$k]['css']['postfix']; |
| Riadok 1165 function '.$this->js['prefix'].'filter_h |
|
| Riadok 1165 function '.$this->js['prefix'].'filter_h |
|
| // Simple edit box required |
// Simple edit box required |
| $len_props = ''; |
$len_props = ''; |
| $maxlen = intval($this->fdd[$k]['maxlen']); |
$maxlen = intval($this->fdd[$k]['maxlen']); |
| $size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60); |
$size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60); |
| if ($size > 0) { |
if ($size > 0) { |
| $len_props .= ' size="'.$size.'"'; |
$len_props .= ' size="'.$size.'"'; |
| } |
} |
| Riadok 1178 function '.$this->js['prefix'].'filter_h |
|
| Riadok 1178 function '.$this->js['prefix'].'filter_h |
|
| echo ' name="',$this->cgi['prefix']['data'].$this->fds[$k],'"'; |
echo ' name="',$this->cgi['prefix']['data'].$this->fds[$k],'"'; |
| echo $len_props,' value="'; |
echo $len_props,' value="'; |
| if($escape) echo $this->_htmlspecialchars(@$this->fdd[$k]['default']); |
if($escape) echo $this->_htmlspecialchars(@$this->fdd[$k]['default']); |
| else echo $this->fdd[$k]['default']; |
else echo $this->fdd[$k]['default'] ?? ''; |
| echo '" />'; |
echo '" />'; |
| } |
} |
| echo '</td>',"\n"; |
echo '</td>',"\n"; |
| Riadok 1259 function '.$this->js['prefix'].'filter_h |
|
| Riadok 1259 function '.$this->js['prefix'].'filter_h |
|
| } |
} |
| if ($this->guidance) { |
if ($this->guidance) { |
| $css_class_name = $this->getCSSclass('help', null, true, $css_postfix); |
$css_class_name = $this->getCSSclass('help', null, true, $css_postfix); |
| $cell_value = $this->fdd[$k]['help'] ? $this->fdd[$k]['help'] : ' '; |
$cell_value = $this->fdd[$k]['help'] ?? ' '; |
| echo '<td class="',$css_class_name,'">',$cell_value,'</td>',"\n"; |
echo '<td class="',$css_class_name,'">',$cell_value,'</td>',"\n"; |
| } |
} |
| echo '</tr>',"\n"; |
echo '</tr>',"\n"; |
| Riadok 1267 function '.$this->js['prefix'].'filter_h |
|
| Riadok 1267 function '.$this->js['prefix'].'filter_h |
|
| } |
} |
| } /* }}} */ |
} /* }}} */ |
| |
|
| function display_change_field($row, $k) /* {{{ */ |
function display_change_field($row, $k) /* {{{ */ |
| { |
{ |
| $css_postfix = @$this->fdd[$k]['css']['postfix']; |
$css_postfix = @$this->fdd[$k]['css']['postfix']; |
| $css_class_name = $this->getCSSclass('input', null, true, $css_postfix); |
$css_class_name = $this->getCSSclass('input', null, true, $css_postfix); |
| Riadok 1295 function '.$this->js['prefix'].'filter_h |
|
| Riadok 1295 function '.$this->js['prefix'].'filter_h |
|
| echo include($this->fdd[$k]['php']); |
echo include($this->fdd[$k]['php']); |
| } else { |
} else { |
| $len_props = ''; |
$len_props = ''; |
| $maxlen = intval($this->fdd[$k]['maxlen']); |
$maxlen = intval($this->fdd[$k]['maxlen'] ?? 0); |
| $size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60); |
$size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60); |
| if ($size > 0) { |
if ($size > 0) { |
| $len_props .= ' size="'.$size.'"'; |
$len_props .= ' size="'.$size.'"'; |
| } |
} |
| Riadok 1320 function '.$this->js['prefix'].'filter_h |
|
| Riadok 1320 function '.$this->js['prefix'].'filter_h |
|
| echo $this->getColAttributes($k),">\n"; |
echo $this->getColAttributes($k),">\n"; |
| $len_props = ''; |
$len_props = ''; |
| $maxlen = intval($this->fdd[$k]['maxlen']); |
$maxlen = intval($this->fdd[$k]['maxlen']); |
| $size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60); |
$size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] : min($maxlen, 60); |
| if ($size > 0) { |
if ($size > 0) { |
| $len_props .= ' size="'.$size.'"'; |
$len_props .= ' size="'.$size.'"'; |
| } |
} |
| Riadok 1816 function '.$this->js['prefix'].'filter_h |
|
| Riadok 1816 function '.$this->js['prefix'].'filter_h |
|
| return $this->cgi['overwrite'][$name]; |
return $this->cgi['overwrite'][$name]; |
| } |
} |
| |
|
| |
if (version_compare(PHP_VERSION, '8.0.0') >= 0) { |
| |
if (isset($_GET[$name])) return $_GET[$name]; |
| |
if (isset($_POST[$name])) return $_POST[$name]; |
| |
return $default_value; |
| |
} |
| |
// continue to old processing of method |
| static $magic_quotes_gpc = null; |
static $magic_quotes_gpc = null; |
| if ($magic_quotes_gpc === null) { |
if ($magic_quotes_gpc === null) { |
| $magic_quotes_gpc = get_magic_quotes_gpc(); |
$magic_quotes_gpc = get_magic_quotes_gpc(); // DEPRECATED from PHP/8.0 |
| } |
} |
| $var = @$_GET[$name]; |
$var = @$_GET[$name]; |
| if (! isset($var)) { |
if (! isset($var)) { |
| Riadok 2093 function '.$this->js['prefix'].'filter_h |
|
| Riadok 2099 function '.$this->js['prefix'].'filter_h |
|
| $nav_fnc = 'nav_'.$position; |
$nav_fnc = 'nav_'.$position; |
| if(! $this->$nav_fnc()) |
if(! $this->$nav_fnc()) |
| return; |
return; |
| $buttons = (is_array($this->buttons[$this->page_type][$position])) |
$buttons = (is_array($this->buttons[$this->page_type][$position] ?? null)) |
| ? $this->buttons[$this->page_type][$position] |
? $this->buttons[$this->page_type][$position] |
| : $this->default_buttons[$this->page_type]; |
: $this->default_buttons[$this->page_type]; |
| foreach ($buttons as $name) { |
foreach ($buttons as $name) { |
| Riadok 2214 function '.$this->js['prefix'].'filter_h |
|
| Riadok 2220 function '.$this->js['prefix'].'filter_h |
|
| * Draw the filter and fill it with any data typed in last pass and stored |
* Draw the filter and fill it with any data typed in last pass and stored |
| * in the array parameter keyword 'filter'. Prepare the SQL WHERE clause. |
* in the array parameter keyword 'filter'. Prepare the SQL WHERE clause. |
| */ |
*/ |
| |
|
| // Filter row retrieval |
// Filter row retrieval |
| /*$fields = false; |
/*$fields = false; |
| $filter_row = array();//$row; |
$filter_row = array();//$row; |
| Riadok 2232 function '.$this->js['prefix'].'filter_h |
|
| Riadok 2238 function '.$this->js['prefix'].'filter_h |
|
| Variable $fields is used to get index of particular field in |
Variable $fields is used to get index of particular field in |
| result. That index can be passed in example to $this->sql_field_len() |
result. That index can be passed in example to $this->sql_field_len() |
| function. Use field names as indexes to $fields array. */ |
function. Use field names as indexes to $fields array. */ |
| |
/* |
| if (is_array($filter_row)) { |
if (is_array($filter_row)) { |
| $fields = array_flip(array_keys($filter_row)); |
$fields = array_flip(array_keys($filter_row)); |
| } |
}*/ |
| //if ($fields != false) { |
//if ($fields != false) { |
| $css_class_name = $this->getCSSclass('filter'); |
$css_class_name = $this->getCSSclass('filter'); |
| echo '<tr class="',$css_class_name,'">',"\n"; |
echo '<tr class="',$css_class_name,'">',"\n"; |
| Riadok 2280 function '.$this->js['prefix'].'filter_h |
|
| Riadok 2287 function '.$this->js['prefix'].'filter_h |
|
| $vals, $selected, $multiple, $readonly, $strip_tags, $escape); |
$vals, $selected, $multiple, $readonly, $strip_tags, $escape); |
| } elseif ($this->fdd[$fd]['select'] == 'N' || $this->fdd[$fd]['select'] == 'T') { |
} elseif ($this->fdd[$fd]['select'] == 'N' || $this->fdd[$fd]['select'] == 'T') { |
| $len_props = ''; |
$len_props = ''; |
| $maxlen = intval($this->fdd[$k]['maxlen']); |
$maxlen = intval($this->fdd[$k]['maxlen'] ?? 0); |
| //$maxlen > 0 || $maxlen = intval($this->sql_field_len($res, $fields["qf$k"])); |
//$maxlen > 0 || $maxlen = intval($this->sql_field_len($res, $fields["qf$k"])); |
| $maxlen > 0 || $maxlen = 500; |
$maxlen > 0 || $maxlen = 500; |
| $size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] |
$size = isset($this->fdd[$k]['size']) ? $this->fdd[$k]['size'] |
| Riadok 2319 function '.$this->js['prefix'].'filter_h |
|
| Riadok 2326 function '.$this->js['prefix'].'filter_h |
|
| .$this->qfn.$this->cgi['persist']); |
.$this->qfn.$this->cgi['persist']); |
| echo '">',$this->labels['Clear'],'</a></td>',"\n"; |
echo '">',$this->labels['Clear'],'</a></td>',"\n"; |
| echo '<td class="',$css_class_name,'" colspan="',$this->num_fields_displayed,'">'; |
echo '<td class="',$css_class_name,'" colspan="',$this->num_fields_displayed,'">'; |
| echo $this->labels['Sorted By'],': ',join(', ', $this->sort_fields_w),'</td></tr>',"\n"; |
echo $this->labels['Sorted By'],': ',join(', ', $this->sort_fields_w),'</td></tr>',"\n"; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| function display_current_query() /* {{{ */ |
function display_current_query() /* {{{ */ |
| Riadok 2476 function '.$this->js['prefix'].'filter_h |
|
| Riadok 2483 function '.$this->js['prefix'].'filter_h |
|
| if ($qparts['orderby'] && $this->display['sort']) $this->display_sorting_sequence(); |
if ($qparts['orderby'] && $this->display['sort']) $this->display_sorting_sequence(); |
| // Display the current query |
// Display the current query |
| if($this->display['query']) $this->display_current_query(); |
if($this->display['query']) $this->display_current_query(); |
| |
|
| if ($this->nav_text_links() || $this->nav_graphic_links()) { |
if ($this->nav_text_links() || $this->nav_graphic_links()) { |
| $qstrparts = array(); |
$qstrparts = array(); |
| strlen($this->fl) > 0 && $qstrparts[] = $this->cgi['prefix']['sys'].'fl'.'='.$this->fl; |
strlen($this->fl) > 0 && $qstrparts[] = $this->cgi['prefix']['sys'].'fl'.'='.$this->fl; |
| Riadok 2716 function '.$this->js['prefix'].'filter_h |
|
| Riadok 2723 function '.$this->js['prefix'].'filter_h |
|
| echo '</table>',"\n"; |
echo '</table>',"\n"; |
| if ($this->tabs_enabled()) { |
if ($this->tabs_enabled()) { |
| echo '</div>',"\n"; |
echo '</div>',"\n"; |
| } |
} |
| $this->display_record_buttons('down'); |
$this->display_record_buttons('down'); |
| |
|
| $this->form_end(); |
$this->form_end(); |
| Riadok 3046 function '.$this->js['prefix'].'filter_h |
|
| Riadok 3053 function '.$this->js['prefix'].'filter_h |
|
| $oldvals = $newvals = $changed = array(); |
$oldvals = $newvals = $changed = array(); |
| return $this->exec_triggers($op, $step, $oldvals, $changed, $newvals); |
return $this->exec_triggers($op, $step, $oldvals, $changed, $newvals); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| /* |
/* |
| * Recreate functions |
* Recreate functions |
| */ |
*/ |
| Riadok 3093 function '.$this->js['prefix'].'filter_h |
|
| Riadok 3100 function '.$this->js['prefix'].'filter_h |
|
| continue; |
continue; |
| } |
} |
| // Make field backups |
// Make field backups |
| $this->fdd[$column][$col_ar[0] .'~'] = $this->fdd[$column][$col_ar[0]]; |
$this->fdd[$column][$col_ar[0] .'~'] = $this->fdd[$column][$col_ar[0]] ?? null; |
| $this->fdd[$column][$col_option.'~'] = $this->fdd[$column][$col_option]; |
$this->fdd[$column][$col_option.'~'] = $this->fdd[$column][$col_option] ?? null; |
| // Set particular field |
// Set particular field |
| $this->fdd[$column][$col_ar[0]] = $this->fdd[$column][$col_option]; |
$this->fdd[$column][$col_ar[0]] = $this->fdd[$column][$col_option]; |
| unset($this->fdd[$column][$col_option]); |
unset($this->fdd[$column][$col_option]); |
| Riadok 3226 function '.$this->js['prefix'].'filter_h |
|
| Riadok 3233 function '.$this->js['prefix'].'filter_h |
|
| } |
} |
| return true; |
return true; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| /* |
/* |
| * The workhorse |
* The workhorse |
| */ |
*/ |
| Riadok 3248 function '.$this->js['prefix'].'filter_h |
|
| Riadok 3255 function '.$this->js['prefix'].'filter_h |
|
| |
|
| // Let's do explicit quoting - it's safer |
// Let's do explicit quoting - it's safer |
| // (but 5.3 does not have this at all) |
// (but 5.3 does not have this at all) |
| if (version_compare(PHP_VERSION, '5.3.0', '<')) { |
if (version_compare(PHP_VERSION, '5.3.0', '<')) { |
| set_magic_quotes_runtime(0); |
set_magic_quotes_runtime(0); |
| } |
} |
| |
|
| Riadok 3344 function '.$this->js['prefix'].'filter_h |
|
| Riadok 3351 function '.$this->js['prefix'].'filter_h |
|
| /* |
/* |
| * Class constructor |
* Class constructor |
| */ |
*/ |
| function phpMyEdit($opts) /* {{{ */ |
function __construct($opts) /* {{{ */ |
| { |
{ |
| // Database handle variables |
// Database handle variables |
| $this->sql_delimiter(); |
$this->sql_delimiter(); |
| Riadok 3360 function '.$this->js['prefix'].'filter_h |
|
| Riadok 3367 function '.$this->js['prefix'].'filter_h |
|
| $this->un = $opts['un']; |
$this->un = $opts['un']; |
| $this->pw = $opts['pw']; |
$this->pw = $opts['pw']; |
| $this->db = $opts['db']; |
$this->db = $opts['db']; |
| $this->ssl = $opts['ssl']; |
$this->ssl = $opts['ssl'] ?? 0; |
| } |
} |
| $this->tb = $opts['tb']; |
$this->tb = $opts['tb']; |
| // Other variables |
// Other variables |
| Riadok 3381 function '.$this->js['prefix'].'filter_h |
|
| Riadok 3388 function '.$this->js['prefix'].'filter_h |
|
| if (! isset($this->page_name)) { |
if (! isset($this->page_name)) { |
| $this->page_name = basename($this->get_server_var('PHP_SELF')); |
$this->page_name = basename($this->get_server_var('PHP_SELF')); |
| isset($this->page_name) || $this->page_name = $this->tb; |
isset($this->page_name) || $this->page_name = $this->tb; |
| } |
} |
| $this->display['query'] = @$opts['display']['query']; |
$this->display['query'] = @$opts['display']['query']; |
| $this->display['sort'] = @$opts['display']['sort']; |
$this->display['sort'] = @$opts['display']['sort']; |
| $this->display['time'] = @$opts['display']['time']; |
$this->display['time'] = @$opts['display']['time']; |
| Riadok 3472 function '.$this->js['prefix'].'filter_h |
|
| Riadok 3479 function '.$this->js['prefix'].'filter_h |
|
| elseif($navfmup!=NULL && $navfmup != $this->fm) $this->navfm = $navfmup; |
elseif($navfmup!=NULL && $navfmup != $this->fm) $this->navfm = $navfmup; |
| elseif($navpndown!=NULL && ($navpndown-1)*$this->inc != $this->fm) $this->navfm = ($navpndown-1)*$this->inc; |
elseif($navpndown!=NULL && ($navpndown-1)*$this->inc != $this->fm) $this->navfm = ($navpndown-1)*$this->inc; |
| elseif($navpnup!=NULL && ($navpnup-1)*$this->inc != $this->fm) $this->navfm = ($navpnup-1)*$this->inc; |
elseif($navpnup!=NULL && ($navpnup-1)*$this->inc != $this->fm) $this->navfm = ($navpnup-1)*$this->inc; |
| else $this->navfm = $this->fm; |
else $this->navfm = $this->fm; |
| $this->operation = $this->get_sys_cgi_var('operation'); |
$this->operation = $this->get_sys_cgi_var('operation'); |
| $oper_prefix_len = strlen($this->cgi['prefix']['operation']); |
$oper_prefix_len = strlen($this->cgi['prefix']['operation']); |
| if (! strncmp($this->cgi['prefix']['operation'], $this->operation, $oper_prefix_len)) { |
if (! strncmp($this->cgi['prefix']['operation'], $this->operation, $oper_prefix_len)) { |