From 57511b4efd7402ef58de66ac1fe2c01ed1b1d7b5 Mon Sep 17 00:00:00 2001 From: arno Date: Thu, 16 Jul 2009 16:23:31 +0200 Subject: [PATCH] real api and clearer separation between server and client --- admin.php | 106 ++- api.php | 287 ++++++++ auth.php | 47 -- build.sh | 2 +- changes.php | 138 ---- devdoc/api.txt | 109 +++ inc/db/anydb.php | 82 +-- inc/db/mysql.php | 92 +-- inc/errors.php | 29 - inc/settings.php | 8 +- inc/utils.php | 50 ++ index.php | 4 +- items.php | 40 +- js/admin.js | 1174 ++++++++++++++------------------ js/syp.js | 2 +- logout.php | 9 + media/admin.css | 106 ++- openlayers/build/OpenLayers.js | 26 +- openlayers/tools/jsmin.pyc | Bin 5888 -> 5888 bytes openlayers/tools/mergejs.pyc | Bin 5555 -> 5555 bytes openlayers/tools/toposort.pyc | Bin 5474 -> 5474 bytes syp.cfg | 2 +- wizard.php | 4 +- 23 files changed, 1151 insertions(+), 1166 deletions(-) create mode 100644 api.php delete mode 100644 auth.php delete mode 100644 changes.php create mode 100644 devdoc/api.txt delete mode 100644 inc/errors.php create mode 100644 logout.php diff --git a/admin.php b/admin.php index 02a5645..b69cc9d 100644 --- a/admin.php +++ b/admin.php @@ -2,8 +2,9 @@ /* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD license. */ -require ("./inc/settings.php"); -require ("./inc/db/mysql.php"); +require_once ("./inc/settings.php"); +require_once ("./inc/db/mysql.php"); +require_once ("./inc/utils.php"); $error = false; try { @@ -59,7 +60,7 @@ if (!$usrtblexists || !$itemstblexists) {