/** * Get allowed value 'disable_functions' PHP option * * @return string */ function getAllowedDisableFunctionsValue() { list($value, $allowed) = getDisabledFunctions(); return implode(',', $allowed); }
?> <font color="silver">|</font> MySQL : <?php echo function_exists('mysql_connect') ? "<font color='red'>Enabled</font>" : "Disabled"; ?> <font color="silver">|</font> MSSQL : <?php echo function_exists('mssql_connect') ? "<font color='red'>Enabled</font>" : "Disabled"; ?> <font color="silver">|</font> PostgreSQL : <?php echo function_exists('pg_connect') ? "<font color='red'>Enabled</font>" : "Disabled"; ?> <font color="silver">|</font> Disable functions : <?php getDisabledFunctions(); ?> </td></tr> </table> <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#c0c0c0 cellPadding=5 width="100%" bgColor=#15354c borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"> <tr><td width="100%" valign="top"> <?php if (count($quicklaunch) > 0) { foreach ($quicklaunch as $item) { $item[1] = str_replace("%d", urlencode($d), $item[1]); $item[1] = str_replace("%sort", $sort, $item[1]); $v = realpath($d . ".."); if (empty($v)) { $a = explode(DIRECTORY_SEPARATOR, $d);
require LIVEZILLA_PATH . "_lib/functions.global.inc.php"; require LIVEZILLA_PATH . "_definitions/definitions.dynamic.inc.php"; require LIVEZILLA_PATH . "_lib/functions.index.inc.php"; require LIVEZILLA_PATH . "_lib/objects.global.users.inc.php"; CacheManager::Flush(); languageSelect(); @set_error_handler("handleError"); initDataProvider(); defineURL("index.php"); $scheme = getScheme(); $html = getFile(TEMPLATE_HTML_INDEX); $errorbox = null; $errors['write'] = getFolderPermissions(); $errors['php_version'] = getPhpVersion(); $errors['mysql'] = getMySQL(); $errors['disabled'] = getDisabledFunctions(); if (!empty($errors['write']) || !empty($errors['php_version']) || !empty($errors['mysql']) || !empty($errors['disabled'])) { $errorbox = getFile(TEMPLATE_HTML_INDEX_ERRORS); $errorbox = str_replace("<!--write_access-->", $errors['write'], $errorbox); if (strlen($errors['write']) > 0 && !empty($errors['php_version'])) { $errors['php_version'] = "<br><br>" . $errors['php_version']; } if ((strlen($errors['write']) > 0 || !empty($errors['php_version'])) && !empty($errors['mysql'])) { $errors['mysql'] = "<br><br>" . $errors['mysql']; } if ((strlen($errors['write']) > 0 || !empty($errors['php_version']) || !empty($errors['mysql'])) && !empty($errors['disabled'])) { $errors['disabled'] = "<br><br>" . $errors['disabled']; } $errorbox = str_replace("<!--mysql-->", $errors['mysql'], $errorbox); $errorbox = str_replace("<!--php_version-->", $errors['php_version'], $errorbox); $errorbox = str_replace("<!--disabled-->", $errors['disabled'], $errorbox);