-
ALGLAVE Ivan authoredALGLAVE Ivan authored
DataQuery.php 612 B
<?php
include "Functions.php";
$funcName = $_POST['functionname'];
if($funcName == 'test')
{
echo 'test';
}
else if($funcName == 'getRecipes')
{
echo getRecipes($_POST['arguments'][0], $_POST['arguments'][1], $_POST['arguments'][2], $_POST['arguments'][3], $_POST['arguments'][4]);
}
else if($funcName == 'getIngredients')
{
echo getIngredients($_POST['arguments'][0]);
}
else if($funcName == 'getRecipeImage')
{
echo getRecipeImage($_POST['arguments'][0]);
}
else
{
echo 'error - unknown func';
}
?>