This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
rabbitmq3: | |
container_name: "rabbitmq" | |
image: rabbitmq:3.8-management-alpine | |
environment: | |
- RABBITMQ_DEFAULT_USER=myuser | |
- RABBITMQ_DEFAULT_PASS=mypassword | |
ports: | |
# AMQP protocol port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://github.com/lonekorean/gist-syntax-themes */ | |
@import url('https://cdn.rawgit.com/lonekorean/gist-syntax-themes/848d6580/stylesheets/chaos.css'); | |
@import url('https://cdn.rawgit.com/lonekorean/gist-syntax-themes/d49b91b3/stylesheets/cobalt.css'); | |
@import url('https://cdn.rawgit.com/lonekorean/gist-syntax-themes/d49b91b3/stylesheets/one-dark.css'); | |
@import url('https://cdn.rawgit.com/lonekorean/gist-syntax-themes/b737b139/stylesheets/tomorrow-night.css'); | |
@import url('https://cdn.rawgit.com/lonekorean/gist-syntax-themes/b737b139/stylesheets/terminal.css'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
gitlab: | |
image: gitlab/gitlab-ce:latest | |
container_name: gitlab | |
restart: always | |
hostname: gitlab | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddHandler application/x-httpd-php .php | |
AddType application/x-httpd-php .php .html | |
LoadModule php7_module "C:/Server/php7.3.3/php7apache2_4.dll" | |
PHPIniDir "C:/Server/php7.3.3" | |
# | |
# AddHandler application/x-httpd-php .php | |
# AddType application/x-httpd-php .php .html | |
# LoadModule php5_module "C:/Server/php5.5.12/php5apache2_4.dll" | |
# PHPIniDir "C:/Server/php5.5.12" | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo a2dismod php5.6 | |
sudo a2enmod php7.2 | |
sudo service apache2 restart | |
sudo update-alternatives --set php /usr/bin/php7.2 | |
sudo update-alternatives --set phar /usr/bin/phar7.2 | |
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.2 | |
sudo update-alternatives --set phpize /usr/bin/phpize7.2 | |
sudo update-alternatives --set php-config /usr/bin/php-config7.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* função do controlador interno para confirmar o nível de acesso *// | |
public function verificar_nivel() { | |
$nivel_necessario = 10; | |
if (!$this->session->userdata('id') || ($this->session->userdata('nivel') != $nivel_necessario)) { | |
$this->session->sess_destroy(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* função do controlador externo para validar o nível e direcionar o usuário para o controlador interno *// | |
public function verificar_sessao() { | |
if ($this->session->userdata('logado') == false) { | |
redirect('acesso/login'); | |
} | |
} |