HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux Bradford-Sitios 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/gestor-horarios.bradford/app/config/constants.php
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Constantes del proyecto Basic CMS
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| Nombre de la aplicacion
|--------------------------------------------------------------------------
|
| Todos los nombres para usar en la aplicacion
|
*/

define("APP_FIRST_NAME", "Gestor");
define("APP_SECOND_NAME", "Horarios");
define("APP_NAME", "Gestor Horarios");
define("SHORT_APP_NAME", "GH");
define("CLIENT_NAME", "Bradford school");
define("SEND_TEST_MAIL", true);
define("TEST_MAIL", 'contacto@mdmn.cl');
define("APP_VERSION", '1.2');


/*
|--------------------------------------------------------------------------
| Path y bases de URL para los componentes
|--------------------------------------------------------------------------
|
| Path y bases de URL para los componentes que integran librerias, imagenes y recursos
|
*/
$base_host = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$base_host .= "://".$_SERVER['HTTP_HOST'];
$base_host .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
$base_path = substr(str_replace(basename($_SERVER['SCRIPT_FILENAME']), "" ,$_SERVER['SCRIPT_FILENAME']), 0, -1);

define('BASE_HOST',         $base_host);
define("ASSETS",            BASE_HOST.'assets');
define("GALLERY_PATH",      BASE_HOST.'/gallery');
define("ROOT_PATH_BASE",    $base_path);
define('SENDGRID_API_KEY', '');
define("UPLOAD_PATH", ROOT_PATH_BASE.'/uploads/');

/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system.  The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
| always be used to set the mode correctly.
|
*/
//define('FILE_READ_MODE', 0644);
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

//define('IMG_SRC', );

/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ',							'rb');
define('FOPEN_READ_WRITE',						'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE',		'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',	'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE',					'ab');
define('FOPEN_READ_WRITE_CREATE',				'a+b');
define('FOPEN_WRITE_CREATE_STRICT',				'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',		'x+b');


/* End of file constants.php */
/* Location: ./application/config/constants.php */