created api.php
This commit is contained in:
parent
43876161ca
commit
8ce49c51f0
13
api.php
Normal file
13
api.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
if ($_GET[output] == 'json') {
|
||||
$sql = "SELECT * FROM `mt_skins` WHERE `author` LIKE '".mysql_real_escape_string($_POST[filter]) ."' LIMIT 0 , 30";
|
||||
}
|
||||
else if ($_GET[output] == 'xml') {
|
||||
$sql = "SELECT * FROM `mt_skins` WHERE `license` LIKE '".mysql_real_escape_string($_POST[filter]) ."' LIMIT 0 , 30";
|
||||
}
|
||||
else {
|
||||
die("missing or invalid param output");
|
||||
}
|
||||
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user