-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgetXml.php
30 lines (28 loc) · 995 Bytes
/
getXml.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
<?php
/**********************************************************************
* Author : Sergio Ceron Figueroa ([email protected])
* Alias : sxceron
* Web : http://www.dotrow.info
* Name : jShop v1.0
* Desc : Formulario para modificar los datos de un usuario
*
***********************************************************************/
// Include file headers
include_once "./includes/validator.php";
include_once "./includes/settings.php";
include_once "./includes/db.php";
include_once "./includes/security.php";
if( $isadmin != 1 ) header( "Location: ./login.php" );
$_validator = new Validator();
$_validator->setMethod( "GET" );
$_validator->setVars( array("id:required") );
if( $_validator->validate() ){
$values = $_validator->getValues();
$sql = sprintf("select * from %s", $values["id"] );
if( isset( $_GET["filter"] ) )
$sql .= " where ".$_GET["filter"];
$request = $db->get_results();
foreach( $request as $item ){
}
}
?>