diff options
author | vdigital <vdigital@piwigo.org> | 2007-02-08 21:20:40 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2007-02-08 21:20:40 +0000 |
commit | 1f53608976250806d9a37f93e386f53a84aedbbc (patch) | |
tree | 23a92181ac7ca7c2b4f657bba59adcd57221b69a /admin/ws_checker.php | |
parent | a62ab78e2a7060ea1c68c5fa837d0939789786b7 (diff) |
Web Service:
- Delete high and normal in #ws_access table
- start date is kept.
w0p0 template: Minor change
git-svn-id: http://piwigo.org/svn/trunk@1791 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/ws_checker.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/admin/ws_checker.php b/admin/ws_checker.php index 305160afd..a52bf5e9b 100644 --- a/admin/ws_checker.php +++ b/admin/ws_checker.php @@ -135,8 +135,6 @@ $add_partner = htmlspecialchars( $_POST['add_partner'], ENT_QUOTES); $add_target = check_target( $_POST['add_target']) ; $add_end = ( is_numeric($_POST['add_end']) ) ? $_POST['add_end']:0; $add_request = htmlspecialchars( $_POST['add_request'], ENT_QUOTES); -$add_high = 'true'; // ( $_POST['add_high'] == 'true' ) ? 'true':'false'; -$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 ) @@ -144,13 +142,12 @@ if ( strlen($add_partner) < 8 ) } $query = ' INSERT INTO '.WEB_SERVICES_ACCESS_TABLE.' -( `name` , `access` , `start` , `end` , `request` , - `high` , `normal` , `limit` , `comment` ) +( `name` , `access` , `start` , `end` , `request` , `limit` , `comment` ) VALUES (' . " '$add_partner', '$add_target', NOW(), ADDDATE( NOW(), INTERVAL $add_end DAY), - '$add_request', '$add_high', '$add_normal', '$add_limit', '$add_comment' );"; + '$add_request', '$add_limit', '$add_comment' );"; pwg_query($query); @@ -223,10 +220,6 @@ if (isset($_POST['wsX_submit'])) $template->assign_vars( array( - 'DEFLT_HIGH_YES' => '', - 'DEFLT_HIGH_NO' => 'checked', - 'DEFLT_NORMAL_YES' => '', - 'DEFLT_NORMAL_NO' => 'checked', 'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=web_service', ) ); |