I hereby claim:
- I am guillehorno on github.
- I am guillehorno (https://keybase.io/guillehorno) on keybase.
- I have a public key whose fingerprint is AE68 2AF6 C405 EC1E 068D B259 7BD8 C72F A4FB 6B46
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Array | |
( | |
[REDIRECT_REDIRECT_SCRIPT_URL] => /ajax_multi_upload/uploads/upload/Company___123 | |
[REDIRECT_REDIRECT_SCRIPT_URI] => http://dev2.dropina.com/ajax_multi_upload/uploads/upload/Company___123 | |
[REDIRECT_REDIRECT_STATUS] => 200 | |
[REDIRECT_SCRIPT_URL] => /ajax_multi_upload/uploads/upload/Company___123 | |
[REDIRECT_SCRIPT_URI] => http://dev2.dropina.com/ajax_multi_upload/uploads/upload/Company___123 | |
[REDIRECT_STATUS] => 200 | |
[SCRIPT_URL] => /ajax_multi_upload/uploads/upload/Company___123 | |
[SCRIPT_URI] => http://dev2.dropina.com/ajax_multi_upload/uploads/upload/Company___123 |
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
64.76.181.134 - - [09/Oct/2012:11:49:17 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 4424 "-" "-" | |
64.76.181.134 - - [09/Oct/2012:11:49:17 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 4424 "-" "-" | |
64.76.181.134 - - [09/Oct/2012:11:49:18 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-" | |
64.76.181.134 - - [09/Oct/2012:11:49:49 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-" | |
64.76.181.134 - - [09/Oct/2012:11:49:49 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-" | |
64.76.181.134 - - [09/Oct/2012:11:49:49 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-" | |
64.76.181.134 - - [09/Oct/2012:11:49:49 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-" | |
64.76.181.134 - - [09/Oct/2012:11:49:49 -0300] "POST /app/payments/pp_notificacion/ HTTP/1.1" 500 715 "-" "-" | |
96.31.66.245 - - [09/Oct/2012:11:50:20 -0300] "GET / HTTP/1.0" 200 16614 "-" "Pingdom.com_bot_version_1.4_(http://www.pingdom.com/)" | |
64.76.181 |
<?php | |
/** | |
* PuntoPagos Component | |
* | |
* Copyright 2012, Guillermo Horno & dvinales | |
* | |
* Licensed under The MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* | |
* @author Guillermo Horno & dvinales |
<?php | |
//codigo de la URL a la que PuntoPagos notifica | |
$post_body = json_decode(file_get_contents("php://input"),true); | |
$headers = getallheaders(); | |
if(empty($post_body)){ //vino vacio la notificacion | |
$this->log('notificacion vacia'); | |
$this->set('rta', json_encode(array('respuesta' => 99, 'token' => ''))); | |
} | |
else{ | |
/*$this->log($post_body); |
function testAdd(){ | |
$result = $this->testAction($this->path.'add',array('data'=>$this->testPackage,'method'=>'post','return'=>'vars')); //aca se llama al test action | |
if($_SESSION['Auth']['User']['role_id']==1 || $_SESSION['Auth']['User']['role_id']==2) | |
$this->tAddLoggedInUser($result['cakeDebug']->data['Lrapackage']); //aca se prueban sus resultados | |
else | |
tAddPublicUser($result); | |
} | |
function tAddLoggedInUser($data){ | |
$this->assertEqual($data['name'],$this->testPackage['Lrapackage']['name']); |