!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/hizup/   drwxr-xr-x
Free 303.4 GB of 429.69 GB (70.61%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     _constants.php (2.42 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @author           Pierre-Henry Soria <hello@ph7builder.com>
 * @copyright        (c) 2012-2023, Pierre-Henry Soria. All Rights Reserved.
 * @license          MIT License; See LICENSE.md and COPYRIGHT.md in the root directory.
 * @link             https://ph7builder.com
 * @package          PH7
 */

namespace PH7;

defined('PH7') or exit(header('Location: ./'));

########## VARIABLES ##########

##### URL #####
// Check the SSL protocol compatibility
$sUrlProtocol = (
    (!empty(
$_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) === 'on') ||
    (!empty(
$_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') ||
    (!empty(
$_SERVER['REQUEST_SCHEME']) && $_SERVER['REQUEST_SCHEME'] === 'https') ||
    
$_SERVER['SERVER_PORT'] === '443'
) ? 'https://' 'http://';

// Determine the domain name, with the port if necessary
$sServerName $_SERVER['SERVER_NAME'] !== $_SERVER['HTTP_HOST'] ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'];
$sDomain = ($_SERVER['SERVER_PORT'] !== '80' && $_SERVER['SERVER_PORT'] !== '443' && strpos($sServerName':') === false) ? $sServerName ':' $_SERVER['SERVER_PORT'] : $sServerName;

// Get the domain that the cookie and cookie session is available (Set-Cookie: domain=your_site_name.com)
// $sDomain_cookie = (substr($_SERVER['HTTP_HOST'], 0, 4) === 'www.') ? '.' . substr($_SERVER['HTTP_HOST'], 4) : '.' . $_SERVER['HTTP_HOST'];
$sDomain_cookie '.' str_replace('www.'''$sDomain);

// Determine the current file of the application
$sPhp_self str_replace('\\'''dirname(htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES))); // Remove backslashes for Windows compatibility


########## CONSTANTS ##########

##### OTHER #####
define('PH7_DS'DIRECTORY_SEPARATOR);
define('PH7_PS'PATH_SEPARATOR);
define('PH7_SH''/'); // SlasH
define('PH7_SELF', (substr($sPhp_self, -1) !== PH7_SH) ? $sPhp_self PH7_SH $sPhp_self);
define('PH7_RELATIVE'PH7_SELF);

##### PATH #####
define('PH7_PATH_ROOT'__DIR__ PH7_DS);
define('PH7_PATH_PROTECTED''[[softpath]]/_protected/');
define('PH7_PATH_APP'PH7_PATH_PROTECTED 'app/');
define('PH7_PATH_FRAMEWORK'PH7_PATH_PROTECTED 'framework/');
define('PH7_PATH_LIBRARY'PH7_PATH_PROTECTED 'library/');

##### URL (PUBLIC) #####
define('PH7_URL_PROT'$sUrlProtocol);
define('PH7_DOMAIN'$sDomain); // URL domain
define('PH7_DOMAIN_COOKIE'$sDomain_cookie);
define('PH7_URL_ROOT'PH7_URL_PROT PH7_DOMAIN PH7_SELF);

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0917 ]--