| 319 |
// $menuitems = array_merge( $menuitems, $database->loadObjectList() ); |
// $menuitems = array_merge( $menuitems, $database->loadObjectList() ); |
| 320 |
|
|
| 321 |
$show_hide = array( |
$show_hide = array( |
| 322 |
mosHTML::makeOption( 1, 'Hide' ), |
mosHTML::makeOption( 1, T_('Hide') ), |
| 323 |
mosHTML::makeOption( 0, 'Show' ), |
mosHTML::makeOption( 0, T_('Show') ), |
| 324 |
); |
); |
| 325 |
|
|
| 326 |
$show_hide_r = array( |
$show_hide_r = array( |
| 327 |
mosHTML::makeOption( 0, 'Hide' ), |
mosHTML::makeOption( 0, T_('Hide') ), |
| 328 |
mosHTML::makeOption( 1, 'Show' ), |
mosHTML::makeOption( 1, T_('Show') ), |
| 329 |
); |
); |
| 330 |
|
|
| 331 |
$list_length = array( |
$list_length = array( |
| 339 |
); |
); |
| 340 |
|
|
| 341 |
$errors = array( |
$errors = array( |
| 342 |
mosHTML::makeOption( -1, 'System Default' ), |
mosHTML::makeOption( -1, T_('System Default') ), |
| 343 |
mosHTML::makeOption( 0, 'None' ), |
mosHTML::makeOption( 0, T_('None') ), |
| 344 |
mosHTML::makeOption( E_ERROR|E_WARNING|E_PARSE, 'Simple' ), |
mosHTML::makeOption( E_ERROR|E_WARNING|E_PARSE, T_('Simple') ), |
| 345 |
mosHTML::makeOption( E_ALL , 'Maximum' ) |
mosHTML::makeOption( E_ALL , T_('Maximum') ) |
| 346 |
); |
); |
| 347 |
|
|
| 348 |
$register_globals = array( |
$register_globals = array( |
| 349 |
mosHTML::makeOption( 1, 'On' ), |
mosHTML::makeOption( 1, T_('On') ), |
| 350 |
mosHTML::makeOption( 0, 'Off' ), |
mosHTML::makeOption( 0, T_('Off') ), |
| 351 |
); |
); |
| 352 |
|
|
| 353 |
$mailer = array( |
$mailer = array( |
| 354 |
mosHTML::makeOption( 'mail', 'PHP mail function', true ), |
mosHTML::makeOption( 'mail', T_('PHP mail function'), true ), |
| 355 |
mosHTML::makeOption( 'sendmail', 'Sendmail', true ), |
mosHTML::makeOption( 'sendmail', T_('Sendmail'), true ), |
| 356 |
mosHTML::makeOption( 'smtp', 'SMTP Server', true ) |
mosHTML::makeOption( 'smtp', T_('SMTP Server'), true ) |
| 357 |
); |
); |
| 358 |
|
|
| 359 |
// build the html select lists |
// build the html select lists |
| 384 |
if (is_writable( "$mosConfig_absolute_path/media/" )) { |
if (is_writable( "$mosConfig_absolute_path/media/" )) { |
| 385 |
$lists['hidepdf'] = mosHTML::RadioList( $show_hide, 'config_hidepdf', 'class="inputbox"', $row->config_hidepdf, 'value', 'text' ); |
$lists['hidepdf'] = mosHTML::RadioList( $show_hide, 'config_hidepdf', 'class="inputbox"', $row->config_hidepdf, 'value', 'text' ); |
| 386 |
} else { |
} else { |
| 387 |
$lists['hidepdf'] = '<input type="hidden" name="config_hidepdf" value="1" /><strong>Yes</strong>'; |
$lists['hidepdf'] = '<input type="hidden" name="config_hidepdf" value="1" /><strong>'.T_('Yes').'</strong>'; |
| 388 |
} |
} |
| 389 |
|
|
| 390 |
$lists['hideprint'] = mosHTML::RadioList( $show_hide, 'config_hideprint', 'class="inputbox"', $row->config_hideprint, 'value', 'text' ); |
$lists['hideprint'] = mosHTML::RadioList( $show_hide, 'config_hideprint', 'class="inputbox"', $row->config_hideprint, 'value', 'text' ); |
| 397 |
|
|
| 398 |
$lists['enable_stats'] = mosHTML::yesnoRadioList( 'config_enable_stats', 'class="inputbox"', $row->config_enable_stats ); |
$lists['enable_stats'] = mosHTML::yesnoRadioList( 'config_enable_stats', 'class="inputbox"', $row->config_enable_stats ); |
| 399 |
|
|
| 400 |
$lists['sef'] = mosHTML::yesnoRadioList( 'config_sef', 'class="inputbox" onclick="javascript: if (document.adminForm.config_sef[1].checked) { alert(\'Remember to rename htaccess.txt to .htaccess\') }"', $row->config_sef ); |
$lists['sef'] = mosHTML::yesnoRadioList( 'config_sef', 'class="inputbox" onclick="javascript: if (document.adminForm.config_sef[1].checked) { alert(\''.T_('Remember to rename htaccess.txt to .htaccess').'\') }"', $row->config_sef ); |
| 401 |
|
|
| 402 |
$lists['vote'] = mosHTML::RadioList( $show_hide_r, 'config_vote', 'class="inputbox"', $row->config_vote, 'value', 'text' ); |
$lists['vote'] = mosHTML::RadioList( $show_hide_r, 'config_vote', 'class="inputbox"', $row->config_vote, 'value', 'text' ); |
| 403 |
|
|
| 482 |
@chmod($fname, $oldperms & 0777555); |
@chmod($fname, $oldperms & 0777555); |
| 483 |
} // if |
} // if |
| 484 |
|
|
| 485 |
$msg = 'The Configuration Details have been updated'; |
$msg = T_('The Configuration Details have been updated'); |
| 486 |
|
|
| 487 |
// apply file and directory permissions if requested by user |
// apply file and directory permissions if requested by user |
| 488 |
$applyFilePerms = mosGetParam($_POST,'applyFilePerms',0) && $row->config_fileperms!=''; |
$applyFilePerms = mosGetParam($_POST,'applyFilePerms',0) && $row->config_fileperms!=''; |
| 536 |
} |
} |
| 537 |
} else { |
} else { |
| 538 |
if ($enable_write) @chmod($fname, $oldperms); |
if ($enable_write) @chmod($fname, $oldperms); |
| 539 |
mosRedirect( 'index2.php', 'An Error Has Occurred! Unable to open config file to write!' ); |
mosRedirect( 'index2.php', T_('An Error Has Occurred! Unable to open config file to write!') ); |
| 540 |
} |
} |
| 541 |
} |
} |
| 542 |
?> |
?> |