Page.php
function tmp()
    {
        //$xlog = new Model\Xlog;

        //$xlog->decodeAgent();

        //Fazendo login
        //Lib\User::this()->login('admin', 'admin#123');
        //Lib\User::this()->setCriptoCookie();

        //Lib\User::this()->unsetCriptoCookie();
        $user = new Lib\User();

        $user->login('jessica', 'jessica#123');

        //$user->unsetCriptoCookie();
        //
        //
        Lib\App::p($user->get(), true);
        Lib\App::p(Lib\User::this()->get(), true);
        Lib\App::p($_SERVER['REMOTE_ADDR'], true);
        Lib\App::p($_SERVER['HTTP_USER_AGENT'], true);
        Lib\App::p($_SERVER['HTTP_ACCEPT_LANGUAGE'], true);

        echo "<br>OS: </b>".$this->operating_system_detection();

        echo '<hr/>';

        $jsonBrowser = json_encode(get_browser());

        echo '<br><b>Tamanho do arquivo: </b>'.strlen($jsonBrowser).'<br>';
        Lib\App::p(json_decode($jsonBrowser), true);


        //Fazendo login
        //Lib\User::this()->login('jessica', 'jessica#123');
        //Lib\User::this()->setCriptoCookie();

        //Lib\App::p(Lib\User::this()->get(), true);

        echo "<hr/><b>Finished!</b>";
    }
function tmp()
    {
        //$xlog = new Model\Xlog;

        //$xlog->decodeAgent();

        //Fazendo login
        //Lib\User::this()->login('admin', 'admin#123');
        //Lib\User::this()->setCriptoCookie();

        //Lib\User::this()->unsetCriptoCookie();
        $user = new Lib\User();

        $user->login('jessica', 'jessica#123');

        //$user->unsetCriptoCookie();
        //
        //
        Lib\App::p($user->get(), true);
        Lib\App::p(Lib\User::this()->get(), true);
        Lib\App::p($_SERVER['REMOTE_ADDR'], true);
        Lib\App::p($_SERVER['HTTP_USER_AGENT'], true);
        Lib\App::p($_SERVER['HTTP_ACCEPT_LANGUAGE'], true);

        echo "<br>OS: </b>".$this->operating_system_detection();

        echo '<hr/>';

        $jsonBrowser = json_encode(get_browser());

        echo '<br><b>Tamanho do arquivo: </b>'.strlen($jsonBrowser).'<br>';
        Lib\App::p(json_decode($jsonBrowser), true);


        //Fazendo login
        //Lib\User::this()->login('jessica', 'jessica#123');
        //Lib\User::this()->setCriptoCookie();

        //Lib\App::p(Lib\User::this()->get(), true);

        echo "<hr/><b>Finished!</b>";
    }
function tmp ( ) { //$xlog = new Model\Xlog; //$xlog->decodeAgent(); //Fazendo login //Lib\User::this()->login('admin', 'admin#123'); //Lib\User::this()->setCriptoCookie(); //Lib\User::this()->unsetCriptoCookie(); $ user = new Lib \ User ( ) ; $ user -> login ( 'jessica' , 'jessica#123' ) ; //$user->unsetCriptoCookie(); // // Lib \ App :: p ( $ user -> get ( ) , true ) ; Lib \ App :: p ( Lib \ User :: this ( ) -> get ( ) , true ) ; Lib \ App :: p ( $ _SERVER [ 'REMOTE_ADDR' ] , true ) ; Lib \ App :: p ( $ _SERVER [ 'HTTP_USER_AGENT' ] , true ) ; Lib \ App :: p ( $ _SERVER [ 'HTTP_ACCEPT_LANGUAGE' ] , true ) ; echo "<br>OS: </b>" . $ this -> operating_system_detection ( ) ; echo '<hr/>' ; $ jsonBrowser = json_encode ( get_browser ( ) ) ; echo '<br><b>Tamanho do arquivo: </b>' . strlen ( $ jsonBrowser ) . '<br>' ; Lib \ App :: p ( json_decode ( $ jsonBrowser ) , true ) ; //Fazendo login //Lib\User::this()->login('jessica', 'jessica#123'); //Lib\User::this()->setCriptoCookie(); //Lib\App::p(Lib\User::this()->get(), true); echo "<hr/><b>Finished!</b>" ; }
TEMP - de le te me
TEMP - de le te me