Skip to content

Commit

Permalink
Funcion url
Browse files Browse the repository at this point in the history
  • Loading branch information
ePayco authored Aug 14, 2017
1 parent ff190b1 commit e81b2d5
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions payco_joomla_virtuemart/payco/confirmacion.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php

function url(){
if(isset($_SERVER['HTTPS'])){
$protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http";
}
else{
$protocol = 'http';
}
return $protocol . "://" . $_SERVER['HTTP_HOST'] ;
}

error_reporting(8191);
require_once('../../../../configuration.php');
$objConf = new JConfig();
Expand Down Expand Up @@ -156,14 +167,14 @@
</tr>
<tr>
<th><strong> Codigo de aprobacion: </strong></th>
<td>'.$_REQUEST['x_aproval_code'].'</td>
<td>'.$_REQUEST['x_approval_code'].'</td>
</tr>
<tr>
<th><strong> Codigo de Respuesta POL: </strong></th>
<td>'.$_REQUEST['x_response_reason_text'].'</td>
</tr>
<tr>
<td><a href="'.dirname(__FILE__).'">Regresar a la tienda</a></td>
<td><a href="'.url().'">Regresar a la tienda</a></td>
</tr>
</tbody>
</table>
Expand All @@ -173,4 +184,4 @@



?>
?>

0 comments on commit e81b2d5

Please sign in to comment.