1
0

created api.php

This commit is contained in:
adrido 2013-08-19 11:41:55 +02:00
parent 43876161ca
commit 8ce49c51f0

13
api.php Normal file
View 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");
}
?>