</tr> <tr align="center"> <td width="51%" align="left" bgcolor="#BFBFBF"> Versión de MySQL</td> <td bgcolor="#DFDFDF" align="right" width="49%"> <?php echo db_mysql_version(0); ?> </td> </tr> <tr align="center"> <td width="51%" align="left" bgcolor="#BFBFBF"> Versión de Apache</td> <td bgcolor="#DFDFDF" align="right" width="49%"> <?php echo apache_version(); ?> </td> </tr> </table> </td> </tr> </table> <?php flush(); ?> <br> <table width="320" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td colspan="3" bgcolor="#E27400"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
} } // // get (or set default) options from the database // $use_ssl = as_option("get", "use_ssl", "0") === "1" ? true : false; $additional_urls = as_option("get", "additional_urls", "wp-comments-post.php\nwp-admin/plugins.php?page=akismet-key-config"); $ignore_urls = as_option("get", "ignore_urls", "xmlrpc.php"); $secure_users_only = as_option("get", "secure_users_only", "0") === "1" ? true : false; if (!isset($config_parent)) { $config_parent = as_option("get", "config_parent", "plugins.php"); } if (apache_version(1.3, 1)) { $default_https_key = "SERVER_PORT"; $default_https_value = "443"; } elseif (apache_version(2)) { $default_https_key = "HTTPS"; $default_https_value = "on"; } $https_key = as_option("get", "https_key", $default_https_key); $https_value = as_option("get", "https_value", $default_https_value); // // build secure site url // $secure_url = preg_replace("|^https?://|", scheme($use_ssl), get_option("siteurl")); $secure_url = rtrim(trim($secure_url), "/"); # remove any trailing slashes // // log plugin options // as_log("HTTPS: " . (is_https() ? "Yes" : "No") . "\n\t\tURL: http" . (is_https() ? "s" : "") . "://" . host() . req_uri() . "\n\n\t\tUse SSL: " . ($use_ssl ? "Yes" : "No") . "\n\t\tSite URL: " . get_option("siteurl") . "\n\t\tSecure URL: {$secure_url}\n\t\tAdditional urls:\n{$additional_urls}\n\t\tIgnore urls:\n{$ignore_urls}\n\t\tSecure users only: " . ($secure_users_only ? "Yes" : "No") . "\n\t\tConfig parent: {$config_parent}");
function lighttpd() { $bin_path = $GLOBALS["CLASS_UNIX"]->find_program("lighttpd"); $EnableLighttpd = $GLOBALS["CLASS_SOCKETS"]->GET_INFO("EnableLighttpd"); $ApacheArticaEnabled = $GLOBALS["CLASS_SOCKETS"]->GET_INFO("ApacheArticaEnabled"); $LighttpdArticaDisabled = $GLOBALS["CLASS_SOCKETS"]->GET_INFO("LighttpdArticaDisabled"); $EnableArticaFrontEndToNGninx = $GLOBALS["CLASS_SOCKETS"]->GET_INFO("EnableArticaFrontEndToNGninx"); $EnableArticaFrontEndToApache = $GLOBALS["CLASS_SOCKETS"]->GET_INFO("EnableArticaFrontEndToApache"); if ($ApacheArticaEnabled == 1) { $EnableLighttpd = 0; } if (!is_numeric($LighttpdArticaDisabled)) { $LighttpdArticaDisabled = 0; } if (!is_numeric($EnableLighttpd)) { $EnableLighttpd = 1; } if (!is_numeric($EnableArticaFrontEndToNGninx)) { $EnableArticaFrontEndToNGninx = 0; } if ($LighttpdArticaDisabled == 1) { $EnableLighttpd = 0; } if (!$GLOBALS["CLASS_USERS"]->NGINX_INSTALLED) { $EnableArticaFrontEndToNGninx = 0; } if ($EnableArticaFrontEndToNGninx == 1) { $EnableLighttpd = 0; } $lighttpd_user = $GLOBALS["CLASS_UNIX"]->LIGHTTPD_USER(); $master_version = lighttpd_version(); $pid_path = "/var/run/lighttpd/lighttpd.pid"; $PatternPIDOF = "{$bin_path} -f /etc/lighttpd/lighttpd.conf"; if ($EnableArticaFrontEndToApache == 1) { $lighttpd_user = $GLOBALS["CLASS_UNIX"]->APACHE_SRC_ACCOUNT(); $master_version = apache_version(); $pid_path = "/var/run/artica-apache/apache.pid"; $PatternPIDOF = $GLOBALS["CLASS_UNIX"]->LOCATE_APACHE_CTL() . " -f /etc/artica-postfix/httpd.conf"; } else { if ($bin_path == null) { return null; } } if ($GLOBALS["VERBOSE"]) { echo "EnableArticaFrontEndToApache:{$EnableArticaFrontEndToApache}\n"; } if ($GLOBALS["VERBOSE"]) { echo "lighttpd-user:{$lighttpd_user}\n"; } $array = stat("/usr/share/artica-postfix/logon.php"); $activeuser = posix_getpwuid($array["uid"]); if ($GLOBALS["VERBOSE"]) { echo "Current:{$activeuser["name"]}\n"; } if (trim($lighttpd_user) != null) { if ($activeuser["name"] != $lighttpd_user) { $cmd = trim("{$GLOBALS["nohup"]} {$GLOBALS["CHOWN"]} {$lighttpd_user} /usr/share/artica-postfix/* >/dev/null 2>&1 &"); $cmd = trim("{$GLOBALS["nohup"]} {$GLOBALS["CHOWN"]} -R {$lighttpd_user} /usr/share/artica-postfix/ressources >/dev/null 2>&1 &"); } } $l[] = "[LIGHTTPD]"; $l[] = "service_name=APP_LIGHTTPD"; $l[] = "master_version={$master_version}"; $l[] = "service_cmd=/etc/init.d/artica-webconsole"; $l[] = "service_disabled={$EnableLighttpd}"; $l[] = "watchdog_features=1"; $l[] = "family=system"; if ($EnableLighttpd == 0) { return implode("\n", $l); } $APACHE_SRC_ACCOUNT = $GLOBALS["CLASS_UNIX"]->APACHE_SRC_ACCOUNT(); $APACHE_SRC_GROUP = $GLOBALS["CLASS_UNIX"]->APACHE_SRC_GROUP(); $GLOBALS["CLASS_UNIX"]->chown_func($APACHE_SRC_ACCOUNT, $APACHE_SRC_GROUP, "/var/lib/php5/*"); $master_pid = trim(@file_get_contents($pid_path)); if ($master_pid == null) { $master_pid = $GLOBALS["CLASS_UNIX"]->PIDOF_PATTERN($PatternPIDOF); } $l[] = "pid_path={$pid_path}"; if (!$GLOBALS["CLASS_UNIX"]->process_exists($master_pid)) { shell_exec2("{$GLOBALS["nohup"]} {$GLOBALS["NICE"]} {$GLOBALS["PHP5"]} /usr/share/artica-postfix/exec.lighttpd.php --start >/dev/null 2>&1 &"); $l[] = ""; return implode("\n", $l); return; } else { shell_exec2("{$GLOBALS["nohup"]} {$GLOBALS["NICE"]} {$GLOBALS["PHP5"]} /usr/share/artica-postfix/exec.lighttpd.php --error500 >/dev/null 2>&1 &"); } $l[] = GetMemoriesOf($master_pid); $l[] = ""; return implode("\n", $l); return; }