. * * home.php * * www-conf-viewer home page. * * @author Daniele Bonini * @copyrights (c) 2016, 2024, 5 Mode */ // CONFIGURATION error_reporting(E_ALL | E_STRICT); ini_set('display_startup_errors',1); ini_set('display_errors',1); ini_set('log_errors',1); require "config.inc"; define('PHP_BR', "
"); define('PHP_SPACE', " "); define('PHP_STR', ""); define("FUNCTIONS_PATH", APP_PATH . DIRECTORY_SEPARATOR . "CONFVW_func"); require FUNCTIONS_PATH . DIRECTORY_SEPARATOR . "func.string.inc"; require FUNCTIONS_PATH . DIRECTORY_SEPARATOR . "func.various.inc"; $password = filter_input(INPUT_POST, "Password")??""; $password = strip_tags($password); if ($password !== PHP_STR) { $hash = hash("sha256", $password . APP_SALT, false); if ($hash !== APP_HASH) { $password=PHP_STR; } } if ($password == PHP_STR) { $NGINX_CONF_PATH = APP_EXAMPLE_PATH . DIRECTORY_SEPARATOR . "nginx.conf"; $NGINX_SERVER_CONF_PATH = APP_EXAMPLE_PATH . DIRECTORY_SEPARATOR . "site.com.conf"; $PHPFPM_CONF_PATH = APP_EXAMPLE_PATH . DIRECTORY_SEPARATOR . "php-fpm.conf"; } else { $NGINX_CONF_PATH = APP_NGINX_CONF_PATH; $NGINX_SERVER_CONF_PATH = APP_NGINX_SERVER_CONF_PATH; $PHPFPM_CONF_PATH = APP_PHPFPM_CONF_PATH; } //echo("NGINX_CONF_PATH=$NGINX_CONF_PATH
"); //echo("NGINX_SERVER_CONF_PATH=$NGINX_SERVER_CONF_PATH
"); //echo("PHPFPM_CONF_PATH=$PHPFPM_CONF_PATH
"); ?> <?PHP echo(APP_TITLE);?>
  www-conf-viewer       on github      for feedback       get support  
NGINX (Core configuration)

 

This is www-conf-viewer, a 5 Mode software.
Copyright 2021, 2024 5 Mode - GPL License
Authors: Daniele Bonini
5 Mode   


"); if (right($line,1)!=";") { $line_buff .= $line . "|||||"; continue; } else { if ($line_buff!=PHP_STR) { $line_buff .= $line . "|||||"; $directive = explode(PHP_SPACE, $line_buff)[0]??null; } } if (right($line,1)=="{" || ($line_buff!=PHP_STR && !$nested)) { ?>
NGINX (HTTP configuration)
$directive (debug)$line

 
 

This is www-conf-viewer, a 5 Mode software.
Copyright 2021, 2024 5 Mode - GPL License
Authors: Daniele Bonini
5 Mode   


NGINX (SERVER configuration)
0) { echo("\n"); } echo(HTMLencode($line, true)); $blank_lines = 0; } } ?>
This is www-conf-viewer, a 5 Mode software.
Copyright 2021, 2024 5 Mode - GPL License
Authors: Daniele Bonini
5 Mode   


PHPFPM
0) { echo("\n"); } echo(HTMLencode($line, true)); $blank_lines = 0; } } ?>
This is www-conf-viewer, a 5 Mode software.
Copyright 2021, 2024 5 Mode - GPL License
Authors: Daniele Bonini
5 Mode   
Login required."); endif; ?>


   
  
Hash Me!