2018-11-20 09:59:59 +01:00
|
|
|
<?php
|
|
|
|
session_start();
|
2022-02-03 21:35:18 +01:00
|
|
|
$_SESSION["docroot"] = __DIR__;
|
2018-11-20 09:59:59 +01:00
|
|
|
switch($_GET["call"]) {
|
|
|
|
case 'list':
|
2022-02-03 21:35:18 +01:00
|
|
|
include $_SESSION["docroot"].'/edit-list.php';
|
2018-11-20 09:59:59 +01:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 'recipes':
|
2022-02-03 21:35:18 +01:00
|
|
|
include $_SESSION["docroot"].'/edit-recipes.php';
|
2018-11-20 09:59:59 +01:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 'user':
|
2022-02-03 21:35:18 +01:00
|
|
|
include $_SESSION["docroot"].'/edit-user.php';
|
2018-11-20 09:59:59 +01:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
echo "API call not defined";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|