From 35c1ea30c7ac7d15aca230bff3156bc784b1419c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 3 Mar 2018 16:12:44 +0100 Subject: [PATCH] api_backupupload --- www/index.php | 6 +++++- www/pages/api_backupupload.php | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 www/pages/api_backupupload.php diff --git a/www/index.php b/www/index.php index 2c0d45f..1216800 100644 --- a/www/index.php +++ b/www/index.php @@ -41,6 +41,7 @@ $URL_RULES = [ 'url' => ['api', 'setselfadress'], 'target' => 'pages/api_setselfadress.php', 'options' => [ '_opt' => 'http', ], ], [ 'url' => ['api', 'statsping'], 'target' => 'pages/api_stats.php', 'options' => [ '_opt' => 'http', 'Name' => '%GET%', 'ClientID' => '%GET%', 'Version' => '%GET%', 'ProviderStr' => '%GET%', 'ProviderID' => '%GET%', 'NoteCount' => '%GET%', ], ], [ 'url' => ['api', 'webhook', '?{target}'], 'target' => 'pages/api_webhook.php', 'options' => [ '_opt' => 'http', 'target' => '%URL%', 'secret' => '%GET%', ],], + [ 'url' => ['api', 'backupupload'], 'target' => 'pages/api_backupupload.php', 'options' => [ '_opt' => 'http', 'folder' => '%GET%', 'filename' => '%GET%', 'secret' => '%GET%', ],], [ 'url' => ['admin'], 'target' => 'pages/admin.php', 'options' => [ '_opt' => 'password'], ], [ 'url' => ['admin', 'updateslog', '${name}'], 'target' => 'pages/admin_ul-list.php', 'options' => [ '_opt' => 'password', 'name' => '%URL%'],], @@ -207,4 +208,7 @@ try { //TODO euler insert+show 32bit | 64bit mode //TODO support for different color schemes // should be possible to change with just a few constant in config.scss -// a (little) bit more hue in default scheme \ No newline at end of file +// a (little) bit more hue in default scheme +//TODO Add easing cookbook +//TODO add befunrep query +//TODO evtl webapp section (?) \ No newline at end of file diff --git a/www/pages/api_backupupload.php b/www/pages/api_backupupload.php new file mode 100644 index 0000000..a9921af --- /dev/null +++ b/www/pages/api_backupupload.php @@ -0,0 +1,33 @@ +