validate_ip($_SERVER['HTTP_FORWARDED'])) return $_SERVER['HTTP_FORWARDED']; // Return unreliable IP address since all else failed return $_SERVER['REMOTE_ADDR']; } } if(!function_exists('validate_ip')) { function validate_ip($ip) { if(filter_var($ip,FILTER_VALIDATE_IP,FILTER_FLAG_IPV4 | FILTER_FLAG_IPV6 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) === false)return false; return true; } } $config['APPCODENAME']='SIRELIEM'; $config['_KeyApp'] = '$DSI514313M$'; $config['def_pw']='Otra1234'; $config['PDF_Agent']='mPDF';//TCPDF - mPDF - DOMPDF $server_app=$_SERVER['SERVER_SOFTWARE']; $app_folder=str_ireplace('\\','',str_ireplace($_SERVER['DOCUMENT_ROOT'],'',FCPATH)); $app_folder=str_ireplace('/share/CACHEDEV1_DATA/Web/','',$app_folder); $app_folder=str_ireplace('/volume1/homes/','',$app_folder); $app_folder=str_ireplace('/volume1/web/','',$app_folder); $app_folder=str_ireplace('/www','',$app_folder); $hostname=gethostname(); $server_ip=gethostbyname($hostname); $server_port=$_SERVER['SERVER_PORT']; $server_port_string=($server_port!=80?':'.$server_port:''); $server_url=siteURL(); $config['index_page']=''; switch(1) { case 1:$config['base_url']='http://'.$server_ip.$server_port_string.'/'.$app_folder;break; case 2:$config['base_url']='http://127.0.0.1'.$server_port_string.'/'.$app_folder;break; case 3:$config['base_url']='http://'.$hostname.$server_port_string.'/'.$app_folder;break; case 4:$config['base_url']=$server_url.$app_folder;break; default:$config['base_url']='';break; }#echo $app_folder; switch($server_ip) { case '10.10.34.58888 ':$config['base_url']='http://inspectores.cancun.gob.mx:8086/'.$app_folder;break; default:break; } //$config['uri_protocol'] = 'PATH_INFO'; $config['recaptcha']['recaptcha_secretkey'] = '';//ok $config['recaptcha']['recaptcha_sitekey'] = '';//ok $config['recaptcha']['lang'] = 'es';//version 02/12/2015 $config['log_threshold'] = 1; $config['encryption_key'] = '.$4EVE&EVE$.'; //$config['_pSession'] = 'uP4'; //Utilizado como concatenacion a las variables de sesion $config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'insp19_'; $config['sess_match_ip'] = FALSE;//POR SEGURIDAD DEBERIA SER TRUE $config['sess_encrypt_cookie']=TRUE;//added $FOLDER_NAME='_2019_ci_sessions'; $config['sess_save_path']=FCPATH.'../'.$FOLDER_NAME;//GUARDA EN WEBSERVER_WWW/FOLDER_NAME switch($hostname) { default:break; }#echo $hostname;die; $config['base_url']='http://201.144.238.71'.$server_port_string.'/';#aqui cambias la ruta #$config['base_url']='http://'.$hostname.$server_port_string.'/app'; $color_admin='#7D011D'; $config['LEFT_LOGO']='
Contraloria
Municipal
';

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/html/TRASH3/application/config/config_custom.php:1)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /var/www/html/TRASH3/application/controllers/Main.php
Line: 8
Function: __construct

File: /var/www/html/TRASH3/index.php
Line: 315
Function: require_once

Error

An Error Was Encountered

Your /var/www/html/TRASH3/application/config/config_custom.php file does not appear to contain a valid configuration array.