aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2007-01-27 15:06:33 +0000
committervdigital <vdigital@piwigo.org>2007-01-27 15:06:33 +0000
commitb003303bc300680d0ce97873b5262ac7001fd90b (patch)
tree871a8f8a26e84a00abe6d6cbe87c8dbba913402a /admin
parent291edfc0c7aad59d0e172e66a9010a3bf736daa2 (diff)
Web Service Merge functions_webserv.inc.php into ws_functions.inc.php
(Next steps: - Revise ws_checker - Restrict Method need to be more generic maybe - Delete functions_webserv.inc.php - ...) git-svn-id: http://piwigo.org/svn/trunk@1758 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/ws_checker.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/admin/ws_checker.php b/admin/ws_checker.php
index a434573ba..c90e55802 100644
--- a/admin/ws_checker.php
+++ b/admin/ws_checker.php
@@ -31,7 +31,7 @@
// - Does Web Service working properly?
// - Does any access return something really?
// Give a way to check to the webmaster...
-// These questions are one of module name explainations (checker).
+// These questions are one of module name explanations (checker).
if((!defined("PHPWG_ROOT_PATH")) or (!$conf['allow_web_services']))
{
@@ -39,12 +39,18 @@ if((!defined("PHPWG_ROOT_PATH")) or (!$conf['allow_web_services']))
}
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
+/**
+ * include ws_functions in only managed from ws_checker but
+ * if ws_methods would be generalized in the code this one would be promoted
+ * somewhere else... Maybe very soon because it can be in plugins.
+ * */
+include_once( PHPWG_ROOT_PATH .'include/ws_functions.inc.php' );
+
// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
-
// accepted queries
$req_type_list = official_req();
@@ -66,7 +72,7 @@ $add_normal = 'true'; // ( $_POST['add_normal'] == 'true' ) ? 'true':'false';
$add_limit = ( is_numeric($_POST['add_limit']) ) ? $_POST['add_limit']:1;
$add_comment = htmlspecialchars( $_POST['add_comment'], ENT_QUOTES);
if ( strlen($add_partner) < 8 )
-{
+{ // TODO What? Complete with some MD5...
}
$query = '
INSERT INTO '.WEB_SERVICES_ACCESS_TABLE.'