Changeset 1745
- Timestamp:
- Jan 23, 2007, 9:38:04 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/ws_checker.php
-
Property
svn:eol-style
set to
native
-
Property
svn:keywords
set to
Author Date Id Revision
r1670 r1745 7 7 // | branch : BSF (Best So Far) 8 8 // | file : $RCSfile$ 9 // | last update : $Date : 2006-12-15 23:16:37 +0200 (ven., 15 dec. 2006)$10 // | last modifier : $Author : vdigital$11 // | revision : $Revision : 1658$9 // | last update : $Date$ 10 // | last modifier : $Author$ 11 // | revision : $Revision$ 12 12 // +-----------------------------------------------------------------------+ 13 13 // | This program is free software; you can redistribute it and/or modify | … … 51 51 //--------------------------------------------------------- update informations 52 52 53 // Is status temporary changed? 54 if (isset($_POST['wss_submit'])) 55 { 56 $ws_status = get_boolean( $_POST['ws_status'] ); // Requested status 57 $ws_update = $lang['ws_success_upd']; // Normal update 58 if ($conf['allow_web_services'] == false and $ws_status == true ) 59 { /* Set true is disallowed */ 60 $ws_status = false; 61 $ws_update = $lang['ws_disallowed']; 62 } 63 if ( $ws_status !== true and $ws_status !== false ) 64 { /* Avoiding SQL injection by no change */ 65 $ws_status = $conf['ws_status']; 66 } 67 if ($conf['ws_status'] == $ws_status) 68 { 69 $ws_update = $lang['ws_disallowed']; 70 } 71 else 72 { 73 $query = ' 74 UPDATE '.CONFIG_TABLE.' SET 75 value = \''.boolean_to_string($ws_status).'\' 76 WHERE param = \'ws_status\' 77 AND value <> \''.boolean_to_string($ws_status).'\' 78 ;'; 79 pwg_query($query); 80 $conf['ws_status'] = $ws_status; 81 } 82 $template->assign_block_vars( 83 'update_result', 84 array( 85 'UPD_ELEMENT'=> $lang['ws_set_status'].': '.$ws_update, 86 ) 87 ); 88 } 89 90 // Next, is a new access required? 53 // Is a new access required? 91 54 92 55 if (isset($_POST['wsa_submit'])) 93 56 { 94 // Check $_post 57 // Check $_post (Some values are commented - maybe a future use) 95 58 $add_partner = htmlspecialchars( $_POST['add_partner'], ENT_QUOTES); 96 59 $add_access = check_target( $_POST['add_access']) ; 97 $add_start = ( is_numeric($_POST['add_start']) ) ? $_POST['add_start']:0;60 $add_start = 0; // ( is_numeric($_POST['add_start']) ) ? $_POST['add_start']:0; 98 61 $add_end = ( is_numeric($_POST['add_end']) ) ? $_POST['add_end']:0; 99 62 $add_request = ( ctype_alpha($_POST['add_request']) ) ? 100 63 $_POST['add_request']:''; 101 $add_high = ( $_POST['add_high'] == 'true' ) ? 'true':'false';102 $add_normal = ( $_POST['add_normal'] == 'true' ) ? 'true':'false';64 $add_high = 'true'; // ( $_POST['add_high'] == 'true' ) ? 'true':'false'; 65 $add_normal = 'true'; // ( $_POST['add_normal'] == 'true' ) ? 'true':'false'; 103 66 $add_limit = ( is_numeric($_POST['add_limit']) ) ? $_POST['add_limit']:1; 104 67 $add_comment = htmlspecialchars( $_POST['add_comment'], ENT_QUOTES); … … 184 147 185 148 186 $ws_status = $conf['ws_status']; 149 187 150 $template->assign_vars( 188 151 array( 189 'L_CURRENT_STATUS' => ( $ws_status == true ) ?190 $lang['ws_enable']:$lang['ws_disable'],191 'STATUS_YES' => ( $ws_status == true ) ? '':'checked',192 'STATUS_NO' => ( $ws_status == true ) ? 'checked':'',193 152 'DEFLT_HIGH_YES' => '', 194 153 'DEFLT_HIGH_NO' => 'checked', … … 224 183 ); 225 184 226 $checked = 'checked="checked"';227 185 $selected = 'selected="selected"'; 228 186 $num=0; … … 277 235 } 278 236 279 $columns = array (280 'ID' => 'id',281 'ws_KeyName' => 'name',282 'ws_Access' => 'ws_access',283 'ws_Start' => 'ws_start',284 'ws_End' => 'ws_end',285 'ws_Request' => 'ws_request',286 'ws_High' => 'ws_high',287 'ws_Normal' => 'ws_normal',288 'ws_Limit' => 'ws_limit',289 'ws_Comment' => 'ws_comment',290 );291 292 237 foreach ($conf['ws_allowed_limit'] as $value) { 293 238 $template->assign_block_vars( -
Property
svn:eol-style
set to
-
trunk/language/en_UK.iso-8859-1/admin.lang.php
r1744 r1745 500 500 $lang['title_wscheck'] = ' Access management '; 501 501 $lang['ws_set_status'] = ' Environment '; 502 $lang['ws_status'] = ' Status ';503 502 $lang['ws_enable'] = ' Enable '; 504 503 $lang['ws_disable'] = ' Disable '; -
trunk/language/fr_FR.iso-8859-1/admin.lang.php
r1744 r1745 499 499 $lang['title_wscheck'] = ' Gestion des accès '; 500 500 $lang['ws_set_status'] = ' Environnement '; 501 $lang['ws_status'] = ' Statut ';502 501 $lang['ws_enable'] = ' Actif '; 503 502 $lang['ws_disable'] = ' Inactif '; -
trunk/template/yoga/admin/ws_checker.tpl
r1661 r1745 13 13 </ul> 14 14 <!-- END update_result --> 15 16 17 <!-- Set Web Services : Open/Disable -->18 <form method="post" name="ws_status" action="{F_STATUS_ACTION}">19 <!-- Current status -->20 <fieldset>21 <legend>{lang:ws_set_status} : <strong>{L_CURRENT_STATUS}</strong></legend>22 <table>23 <tr>24 <td width="70%">25 {lang:ws set to} 26 <label><input type="radio" name="ws_status" value="true"27 {STATUS_YES} /> {lang:ws_enable}28 </label> 29 <label><input type="radio" name="ws_status" value="false"30 {STATUS_NO} /> {lang:ws_disable}31 </label>32 </td>33 <td width="4%">34 35 </td>36 <td>37 <input type="submit" value="{lang:submit}"38 style="width: 10em; padding-top: 3px;"39 name="wss_submit" {TAG_INPUT_ENABLED} />40 </td>41 </tr>42 </table>43 </fieldset>44 </form>45 46 15 47 16 <!-- Add Access --> … … 115 84 116 85 <!-- Open service is postponed by n days --> 86 <!-- In comment currently 117 87 <tr> 118 88 <td> … … 130 100 </select> 131 101 </td> 132 </tr> 102 </tr> --> 133 103 134 104 <!-- Opened service only for n days --> … … 151 121 152 122 <!-- High resolution information will be returned --> 123 <!-- In comment currently 153 124 <tr> 154 125 <td> … … 166 137 </label> 167 138 </td> 168 </tr> 139 </tr> --> 169 140 170 141 <!-- Normal size information will be returned --> 142 <!-- In comment currently 171 143 <tr> 172 144 <td> … … 184 156 </label> 185 157 </td> 186 </tr> 158 </tr> --> 187 159 188 160 <!-- Idendify your partner (name / website / phone) as you want --> … … 229 201 <th>{lang:ws_KeyName}</th> 230 202 <th>{lang:ws_Access}</th> 231 < th>{lang:ws_Start}</th>203 <!-- <th>{lang:ws_Start}</th> --> 232 204 <th>{lang:ws_End}</th> 233 205 <th>{lang:ws_Request}</th> 234 < th>{lang:ws_High}</th>235 < th>{lang:ws_Normal}</th>206 <!-- <th>{lang:ws_High}</th> --> 207 <!-- <th>{lang:ws_Normal}</th> --> 236 208 <th>{lang:ws_Limit}</th> 237 209 <th>{lang:ws_Comment}</th> … … 245 217 <td><label for="selection-{acc_list.access.ID}">{acc_list.access.NAME}</label></td> 246 218 <td>{acc_list.access.ACCESS}</td> 247 < td>{acc_list.access.START}</td>219 <!-- <td>{acc_list.access.START}</td> --> 248 220 <td>{acc_list.access.END}</td> 249 221 <td>{acc_list.access.FORCE}</td> 250 < td>{acc_list.access.HIGH}</td>251 < td>{acc_list.access.NORMAL}</td>222 <!-- <td>{acc_list.access.HIGH}</td> --> 223 <!-- <td>{acc_list.access.NORMAL}</td> --> 252 224 <td>{acc_list.access.LIMIT}</td> 253 225 <td>{acc_list.access.COMMENT}</td>
Note: See TracChangeset
for help on using the changeset viewer.