https://github.com/kdevelopement/hookssl
Força SSL No Codeigniter
https://github.com/kdevelopement/hookssl
Last synced: 5 months ago
JSON representation
Força SSL No Codeigniter
- Host: GitHub
- URL: https://github.com/kdevelopement/hookssl
- Owner: KDevelopement
- Created: 2020-02-28T17:39:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-28T17:44:17.000Z (over 6 years ago)
- Last Synced: 2024-12-29T11:51:46.017Z (over 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HookSSL
Força SSL No Codeigniter
# COMO ATIVAR E USAR:
Abra o arquivo de configuração do local application/config/config.phpe ative ou defina os hooks como true:
$config['enable_hooks'] = TRUE;
Em seguida, crie um novo arquivo chamado hooks.phpdentro da configpasta (por exemplo, application/config/hooks.php) e
adicione o seguinte código:
$hook['post_controller_constructor'][] = array(
'function' => 'redirect_ssl',
'filename' => 'ssl.php',
'filepath' => 'hooks'
);
Agora crie um novo diretório chamado hooksdentro da applicationpasta (por exemplo, application/hooks) e,
em seguida, crie um novo arquivo chamado ssl.phpdentro da hookspasta (por exemplo, application/hooks/ssl.php).