-
Notifications
You must be signed in to change notification settings - Fork 0
/
pedido.php
executable file
·33 lines (30 loc) · 1.12 KB
/
pedido.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
session_start();
require_once('modelos/bd.php');
require_once('modelos/usuarios.php');
require_once('modelos/mensajes.php');
$usuarios = new Usuarios();
$mensajes = new Mensajes();
$html = file_get_contents('pedido.html');
require_once('vistas/datos_usuario.php');
$msj = '';
if(isset($_GET['error']))
{
$msj = '<ul class="woocommerce-error">
<li>'.strtoupper(htmlspecialchars(stripslashes($_GET['error']))).'</li>
</ul>';
}
if(isset($_GET['success']))
{
$msj = '<div class="woocommerce-message" style="background:#009900!important;">
'.strtoupper(htmlspecialchars(stripslashes($_GET['success']))).'
</div>';
}
$html = str_replace('{msj}', $msj, $html);
$html = str_replace('{id_pedido}', $_POST['billing'], $html);
$html = str_replace('{tipo_pedido}', $_POST['tbilling'], $html);
$html = str_replace('{precio_pedido}', $_POST['pbilling'], $html);
$html = str_replace('{ruta}', 'http://urglo.com/', $html);
$html = str_replace('{ruta_index}', 'http://urglo.com/miembros/', $html);
echo $html;
?>