' . T_('Mambo Version Information') . ':
'; if (strcmp($local->version, $server->version)==0) { echo T_('Your Mambo version is up to date') . '
'; echo T_('The current stable version is') . " $server->version
"; } else { echo T_('Your Mambo version is out of date. We recommend you') . "" . ' ' . T_('upgrade') . '.
'; echo T_('The current stable version is') . " $server->version
"; echo T_('Your version is') . " $local->version
"; } //Check patch echo '
' . T_('Mambo Security Patch Information') . ':
'; if ($server->patch == '') { echo T_('No patches have been released') . '
'; } elseif ($local->patch == $server->patch) { echo T_('Your Mambo install has the latest recommended patch') . '
'; echo T_('The recommended patch level is') . ": $local->patch
"; } else { echo T_('Your Mambo install does not have the latest recommended security patch. We recommend you apply the latest') . "" . ' ' . T_('patch') . '.
'; echo T_('The recommended patch level is') . ": $server->patch
"; if ($local->patch == '') { echo T_('Your patch level is') . ': ' . T_('No patches applied') . '
'; } else { echo T_('Your patch level is') . ": $local->patch
"; } } //Check messages echo '
' . T_('Additional Messages') . ':
'; if ($server->message == ''){ echo T_('There are no messages at this time'); } else { print $server->message; } ?>
  /   /
getTemplate() . '/cpanel.php'; if (file_exists( $path )) { require $path; } else { echo '
'; mosLoadAdminModules( 'cpanel', 1 ); } } function get_php_setting($val) { $r = (ini_get($val) == '1' ? 1 : 0); return $r ? 'ON' : 'OFF'; } function get_server_software() { if (isset($_SERVER['SERVER_SOFTWARE'])) { return $_SERVER['SERVER_SOFTWARE']; } else if (($sf = getenv('SERVER_SOFTWARE'))) { return $sf; } else { return 'n/a'; } } function system_info( $version ) { global $mosConfig_absolute_path, $database; //$tab = mosGetParam( $_REQUEST, 'tab', 'tab1' ); $width = 400; // width of 100% $tabs = new mosTabs(0); ?>
startPane("sysinfo"); $tabs->startTab(T_("System Info"),"system-page"); ?>
setQuery( $query ); $editor = $database->loadResult(); ?>
:
$v) { if (eregi( 'mosConfig_host', $v)) { $cf[$k] = '$mosConfig_host = \'xxxxxx\''; } else if (eregi( 'mosConfig_user', $v)) { $cf[$k] = '$mosConfig_user = \'xxxxxx\''; } else if (eregi( 'mosConfig_password', $v)) { $cf[$k] = '$mosConfig_password = \'xxxxxx\''; } else if (eregi( 'mosConfig_db ', $v)) { $cf[$k] = '$mosConfig_db = \'xxxxxx\''; } else if (eregi( '", $cf ); ?>
endTab(); $tabs->startTab(T_("PHP Info"),"php-page"); ?>
]*>(.*)#siU', $phpinfo, $output); $output = preg_replace('##', '', $output); echo $output; ?>
endTab(); $tabs->startTab(T_('Permissions'),'perms'); ?>
endTab(); $tabs->endPane(); ?>
| | | | | | docs.mambo-foundation.org |
$v) { if ($helpurl) { echo '
' . $v . ''; } else { echo '
' . $v . ''; } } ?>
(.*?)#', $buffer, $m )) { $title = trim( $m[1] ); if ($title) { if ($helpurl) { // strip the extension #$file = preg_replace( '#\.xml$|\.html$#', '', $file ); } if ($helpsearch) { if (stripos( strip_tags( $buffer ), $helpsearch ) !== false) { $toc[$file] = $title; } } else { $toc[$file] = $title; } } } } asort( $toc ); return $toc; } ?>