Ignore:
Timestamp:
Feb 8, 2007, 10:20:40 PM (18 years ago)
Author:
vdigital
Message:

Web Service:

  • Delete high and normal in #ws_access table
  • start date is kept.

w0p0 template: Minor change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/ws_checker.php

    r1781 r1791  
    136136$add_end = ( is_numeric($_POST['add_end']) ) ? $_POST['add_end']:0;
    137137$add_request = htmlspecialchars( $_POST['add_request'], ENT_QUOTES);
    138 $add_high = 'true'; // ( $_POST['add_high'] == 'true' ) ? 'true':'false';
    139 $add_normal = 'true'; // ( $_POST['add_normal'] == 'true' ) ? 'true':'false';
    140138$add_limit = ( is_numeric($_POST['add_limit']) ) ? $_POST['add_limit']:1;
    141139$add_comment = htmlspecialchars( $_POST['add_comment'], ENT_QUOTES);
     
    145143  $query = '
    146144INSERT INTO '.WEB_SERVICES_ACCESS_TABLE.'
    147 ( `name` , `access` , `start` , `end` , `request` ,
    148   `high` , `normal` , `limit` , `comment` )
     145( `name` , `access` , `start` , `end` , `request` , `limit` , `comment` )
    149146VALUES (' . "
    150147  '$add_partner', '$add_target',
    151148  NOW(),
    152149  ADDDATE( NOW(), INTERVAL $add_end DAY),
    153   '$add_request', '$add_high', '$add_normal', '$add_limit', '$add_comment' );";
     150  '$add_request', '$add_limit', '$add_comment' );";
    154151
    155152  pwg_query($query);
     
    224221$template->assign_vars(
    225222  array(
    226     'DEFLT_HIGH_YES' => '',
    227     'DEFLT_HIGH_NO' => 'checked',
    228     'DEFLT_NORMAL_YES' => '',
    229     'DEFLT_NORMAL_NO' => 'checked',
    230223    'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=web_service',   
    231224    )
Note: See TracChangeset for help on using the changeset viewer.