This file contains hidden or 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 | |
| namespace AppBundle\Services; | |
| use Doctrine\ORM\EntityManagerInterface; | |
| use Firebase\JWT\JWT; | |
| class JwtAuth | |
| { | |
| protected $em; |
This file contains hidden or 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 | |
| //IMAGEN EN FORMATO PNG | |
| $image = imagecreatefromstring(base64_decode("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEYSURBVBgZBcHPio5hGAfg6/2+R980k6wmJgsJ5U/ZOAqbSc2GnXOwUg7BESgLUeIQ1GSjLFnMwsKGGg1qxJRmPM97/1zXFAAAAEADdlfZzr26miup2svnelq7d2aYgt3rebl585wN6+K3I1/9fJe7O/uIePP2SypJkiRJ0vMhr55FLCA3zgIAOK9uQ4MS361ZOSX+OrTvkgINSjS/HIvhjxNNFGgQsbSmabohKDNoUGLohsls6BaiQIMSs2FYmnXdUsygQYmumy3Nhi6igwalDEOJEjPKP7CA2aFNK8Bkyy3fdNCg7r9/fW3jgpVJbDmy5+PB2IYp4MXFelQ7izPrhkPHB+P5/PjhD5gCgCenx+VR/dODEwD+A3T7nqbxwf1HAAAAAElFTkSuQmCC")); | |
| imagepng($image, "prueba.png"); |
This file contains hidden or 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 | |
| $url = 'http://consultas.curp.gob.mx/CurpSP/'; | |
| // disguises the curl using fake headers and a fake user agent. | |
| function disguise_curl($url) | |
| { | |
| $curl = curl_init(); | |
| // Setup headers - I used the same headers from Firefox version 2.0.0.6 |
This file contains hidden or 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 | |
| $contents = file_get_contents("https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=hola"); | |
| echo '<img src="data:image/png;base64,'. base64_encode($contents) .'">'; |
This file contains hidden or 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
| RewriteEngine On | |
| RewriteRule ^\.htaccess$ - [F] | |
| RewriteCond %{REQUEST_URI} ="" | |
| RewriteRule ^.*$ /public/index.php [NC,L] | |
| RewriteCond %{REQUEST_URI} !^/public/.*$ | |
| RewriteRule ^(.*)$ /public/$1 |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Contador de clicks</title> | |
| <script> | |
| var i = 0 | |
| function clickLink() { | |
| i++; | |
| if (i == 1) { | |
| document.getElementById("clicks").innerHTML = i; | |
| } |
This file contains hidden or 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
| <html> | |
| <head> | |
| <!-- CONDICIONAL --> | |
| <!--[if lt IE 9]> <link href="/assets/common/css/suggest.css" media="screen" rel="stylesheet" type="text/css" ><![endif]--> | |
| </head> | |
| <body> | |
| <div class="content"> | |
| <div class="row"> | |
| <div class="span12"> | |
| <div id="suggest" class="alert alert-error alert-block fade in"> |
This file contains hidden or 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 | |
| class Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
| { | |
| protected function _initResourceAutoloader() | |
| { | |
| // Resgistrando el espacio de nombres vacío | |
| $resourceAutoloader = new Zend_Loader_Autoloader_Resource(array( | |
| 'basePath' => APPLICATION_PATH, | |
| 'namespace' => '' | |
| )); |
This file contains hidden or 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 | |
| class ImagesController extends Zend_Controller_Action | |
| { | |
| // .... | |
| private function _upload($imageName = null) | |
| { | |
| $path = realpath(APPLICATION_PATH . '/../public/uploads/'); | |
| /*RECIBIENDO IMAGEN*/ | |
| $upload = new Zend_File_Transfer_Adapter_Http(); |
This file contains hidden or 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 | |
| // Alexa/Acl.php | |
| /** | |
| * Implentación de Zend_Acl | |
| * | |
| * Implentemación estática de Zend_Acl hecha para cumplir con el proposito | |
| * del desarrollo. | |
| * |