Changeset 1760
- Timestamp:
- Jan 27, 2007, 7:52:20 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin.php
r1727 r1760 115 115 ) 116 116 ); 117 if ($conf[' allow_web_services'])117 if ($conf['ws_access_control']) // Do we need to display ws_checker 118 118 { 119 119 $template->assign_block_vars( -
trunk/admin/ws_checker.php
r1758 r1760 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 6PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) … … 63 63 // Check $_post (Some values are commented - maybe a future use) 64 64 $add_partner = htmlspecialchars( $_POST['add_partner'], ENT_QUOTES); 65 $add_access = check_target( $_POST['add_access']) ; 66 $add_start = 0; // ( is_numeric($_POST['add_start']) ) ? $_POST['add_start']:0; 65 $add_target = check_target( $_POST['add_target']) ; 67 66 $add_end = ( is_numeric($_POST['add_end']) ) ? $_POST['add_end']:0; 68 $add_request = ( ctype_alpha($_POST['add_request']) ) ? 69 $_POST['add_request']:''; 67 $add_request = htmlspecialchars( $_POST['add_request'], ENT_QUOTES); 70 68 $add_high = 'true'; // ( $_POST['add_high'] == 'true' ) ? 'true':'false'; 71 69 $add_normal = 'true'; // ( $_POST['add_normal'] == 'true' ) ? 'true':'false'; … … 80 78 `high` , `normal` , `limit` , `comment` ) 81 79 VALUES (' . " 82 '$add_partner', '$add_ access',83 ADDDATE( NOW(), INTERVAL $add_start DAY),80 '$add_partner', '$add_target', 81 NOW(), 84 82 ADDDATE( NOW(), INTERVAL $add_end DAY), 85 83 '$add_request', '$add_high', '$add_normal', '$add_limit', '$add_comment' );"; … … 208 206 'NAME' => 209 207 (is_adviser()) ? '*********' : $row['name'], 210 'ACCESS' => $row['access'], 211 'START' => $row['start'], 208 'TARGET' => $row['access'], 212 209 'END' => $row['end'], 213 'FORCE' => $row['request'], 214 'HIGH' => $row['high'], 215 'NORMAL' => $row['normal'], 210 'REQUEST' => $row['request'], 216 211 'LIMIT' => $row['limit'], 217 212 'COMMENT' => $row['comment'], … … 235 230 array( 236 231 'VALUE'=> $value, 237 'CONTENT' => $ lang['ws_'.$value],232 'CONTENT' => $value, 238 233 'SELECTED' => '', 239 234 ) -
trunk/include/ws_functions.inc.php
r1759 r1760 822 822 function official_req() 823 823 { 824 return array( 825 'random' /* Random order*/826 , 'list' /* list on MBt & z0rglub request*/827 , 'maxviewed' /* hit > 0 and hit desc order*/828 , 'recent' /* recent = Date_available desc order*/829 , 'highrated' /* avg_rate > 0 and desc order*/830 , 'oldest' /* Date_available asc order*/831 , 'lessviewed' /* hit asc order*/832 , 'lowrated' /* avg_rate asc order*/833 , 'undescribed' /* description missing */834 , 'unnamed' /* new name missing */835 , 'portraits' /* width < height (portrait oriented) */836 , 'landscapes' /* width > height (landscape oriented) */837 , 'squares' /* width ~ height (square form) */838 );824 $official = array( /* Requests are limited to */ 825 'categories.' /* all categories. methods */ 826 , 'categories.getImages' /* <= see */ 827 , 'categories.getList' /* <= see */ 828 , 'images.' /* all images. methods */ 829 , 'images.getInfo' /* <= see */ 830 , 'tags.' /* all tags. methods */ 831 , 'tags.getImages' /* <= see */ 832 , 'tags.getList' /* <= see */ 833 ); 834 if (function_exists('local_req')) { 835 $local = local_req(); 836 return array_merge( $official, $local ); 837 } 838 return $official; 839 839 } 840 840 -
trunk/language/en_UK.iso-8859-1/admin.lang.php
r1755 r1760 502 502 // $lang['ws_default_legend'] = ' Assumed defaults parameters in any missing cases '; 503 503 // $lang['ws_default'] = ' Default '; 504 // $lang['ws_request'] = ' Request (Demand type)';504 $lang['ws_Methods'] = ' Methods '; 505 505 // $lang['ws_requested_nbr'] = ' Number of images per request '; 506 506 $lang['ws_random'] = 'Random'; /* Random order */ -
trunk/language/fr_FR.iso-8859-1/admin.lang.php
r1755 r1760 501 501 // $lang['ws_default_legend'] = ' Valeurs par défaut en situation de paramètre manquant '; 502 502 // $lang['ws_default'] = ' Défauts '; 503 // $lang['ws_request'] = ' Requête (Type de demande)';503 $lang['ws_Methods'] = ' Méthodes '; 504 504 // $lang['ws_requested_nbr'] = ' Nombre d\'images renvoyées '; 505 505 $lang['ws_random'] = 'Aléatoires'; /* Random order */ -
trunk/template/yoga/admin/ws_checker.tpl
r1745 r1760 38 38 </td> 39 39 <td> 40 <input type="text" maxlength="128" size="35" name="add_ access"41 id="add_ access" value="{F_ADD_ACCESS}"40 <input type="text" maxlength="128" size="35" name="add_target" 41 id="add_target" value="{F_ADD_ACCESS}" 42 42 title="{lang:Facultative and restrictive option}" /> 43 43 <i><small> ({lang:Access: see help text for more}) … … 61 61 <!-- END add_request --> 62 62 </select> 63 <i><small> ({lang:ws_ Request})</small></i>63 <i><small> ({lang:ws_Methods})</small></i> 64 64 </td> 65 65 </tr> … … 201 201 <th>{lang:ws_KeyName}</th> 202 202 <th>{lang:ws_Access}</th> 203 <!-- <th>{lang:ws_Start}</th> -->204 203 <th>{lang:ws_End}</th> 205 204 <th>{lang:ws_Request}</th> 206 <!-- <th>{lang:ws_High}</th> -->207 <!-- <th>{lang:ws_Normal}</th> -->208 205 <th>{lang:ws_Limit}</th> 209 206 <th>{lang:ws_Comment}</th> … … 216 213 </td> 217 214 <td><label for="selection-{acc_list.access.ID}">{acc_list.access.NAME}</label></td> 218 <td>{acc_list.access.ACCESS}</td> 219 <!-- <td>{acc_list.access.START}</td> --> 215 <td>{acc_list.access.TARGET}</td> 220 216 <td>{acc_list.access.END}</td> 221 <td>{acc_list.access.FORCE}</td> 222 <!-- <td>{acc_list.access.HIGH}</td> --> 223 <!-- <td>{acc_list.access.NORMAL}</td> --> 217 <td>{acc_list.access.REQUEST}</td> 224 218 <td>{acc_list.access.LIMIT}</td> 225 219 <td>{acc_list.access.COMMENT}</td>
Note: See TracChangeset
for help on using the changeset viewer.