FFY00

Pegar o nome apartir da session no Sistema de Login

Mar 18th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. <?php
  2.  
  3.     /**
  4.      * Copyright :D
  5.      *
  6.      * @copyright  2015 FFY00 (Filipe Laíns)
  7.      * @license https://github.com/FFY00/Simple-Non-Code-License-SNCL-/blob/master/LICENSE.md Simple Non Code License (SNCL) v1.10.0
  8.      * @author Filipe Laíns <[email protected]>
  9.      */
  10.  
  11.     $_BS['Encrypt']['tipo'] = MCRYPT_RIJNDAEL_128; // Tipo de Encriptação utilizada
  12.     $_BS['Encrypt']['modo'] = MCRYPT_MODE_CBC; // Não mexer se n sabe o que está a fazer .-.
  13.     $_BS['Encrypt']['chave'] = 'QualquerCoisaAqui'; // Password de encriptação
  14.     $iv = mcrypt_create_iv(mcrypt_get_iv_size($_BS['Encrypt']['tipo'], $_BS['Encrypt']['modo']), MCRYPT_DEV_URANDOM);
  15.     $user = mcrypt_decrypt($_BS['Encrypt']['tipo'], $_BS['Encrypt']['chave'], $_SESSION["LOGIN_MINECRAFT"], $_BS['Encrypt']['modo'], $iv);
  16.    
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment