diff --git a/var/www/common.php b/var/www/common.php index 1d72241..198bf50 100644 --- a/var/www/common.php +++ b/var/www/common.php @@ -25,9 +25,9 @@ const REQUIRE_APPROVAL=false; //require admin approval of new sites? true/false const ENABLE_SHELL_ACCESS=true; //allows users to login via ssh, when disabled only (s)ftp is allowed - run setup.php to migrate existing accounts const ADMIN_PASSWORD='MY_PASSWORD'; //password for admin interface const SERVICE_INSTANCES=['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's']; //one character per instance - run multiple tor+php-fpm instances for load balancing, remove all but one instance if you expect less than 200 accounts. If tor starts using 100% cpu and failing circuits every few hours after a restart, add more instances. In my experience this happens around 250 hidden services per instance - run setup.php after change -const DISABLED_PHP_VERSIONS=[]; //php versions still installed on the system but no longer offered for new accounts -const PHP_VERSIONS=[3 => '7.2', 4 => '7.3', 5 => '7.4']; //currently active php versions -const DEFAULT_PHP_VERSION='7.3'; //default php version +const DISABLED_PHP_VERSIONS=[3 => '7.2']; //php versions still installed on the system but no longer offered for new accounts +const PHP_VERSIONS=[4 => '7.3', 5 => '7.4']; //currently active php versions +const DEFAULT_PHP_VERSION='7.4'; //default php version const PHP_CONFIG='zend_extension=opcache.so memory_limit = 256M error_reporting = E_ALL @@ -134,6 +134,7 @@ const COINPAYMENTS_PUBLIC = 'COINPAYMENTS_PUBLIC'; //Coinpayments public API key const COINPAYMENTS_MERCHANT_ID = 'COINPAYMENTS_MERCHANT_ID'; //Coinpayments merchant ID const COINPAYMENTS_IPN_SECRET = 'COINPAYMENTS_IPN_SECRET'; //Coinpayments IPN secret const COINPAYMENTS_FAKE_BUYER_EMAIL = 'daniel@danwin1210.me'; //fixed email used for the required buyer email field +const SITE_NAME = "Daniel's Hosting"; function get_onion_v2($pkey) : string { $keyData = openssl_pkey_get_details($pkey); diff --git a/var/www/cron.php b/var/www/cron.php index 7b0190b..17a434d 100644 --- a/var/www/cron.php +++ b/var/www/cron.php @@ -1,5 +1,5 @@ 'hosting_admin']); @@ -8,7 +8,7 @@ if($_SERVER['REQUEST_METHOD']==='HEAD'){ } ?> -Daniel's Hosting - Admin panel +<?php echo htmlspecialchars(SITE_NAME); ?> - Admin panel diff --git a/var/www/html/delete.php b/var/www/html/delete.php index d14ce83..ece29aa 100644 --- a/var/www/html/delete.php +++ b/var/www/html/delete.php @@ -1,5 +1,5 @@ -Daniel's Hosting - Delete account +<?php echo htmlspecialchars(SITE_NAME); ?> - Delete account diff --git a/var/www/html/faq.php b/var/www/html/faq.php index a86cf53..0f37f4d 100644 --- a/var/www/html/faq.php +++ b/var/www/html/faq.php @@ -1,10 +1,10 @@ -Daniel's Hosting - FAQ +<?php echo htmlspecialchars(SITE_NAME); ?> - FAQ diff --git a/var/www/html/files.php b/var/www/html/files.php index 9f7bddf..56c93df 100644 --- a/var/www/html/files.php +++ b/var/www/html/files.php @@ -1,5 +1,5 @@ -Daniel's Hosting - FileManager - Index of <?php echo $dir; ?> +<?php echo htmlspecialchars(SITE_NAME); ?> - FileManager - Index of <?php echo $dir; ?>