Changeset 2585 for trunk/include
- Timestamp:
- Sep 25, 2008, 2:30:42 AM (16 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_core.inc.php
r2543 r2585 370 370 $contentType = $this->_responseEncoder->getContentType(); 371 371 372 @header('Content-Type: '.$contentType );372 @header('Content-Type: '.$contentType.'; charset='.get_pwg_charset()); 373 373 print_r($encodedResponse); 374 374 } -
trunk/include/ws_functions.inc.php
r2584 r2585 476 476 $row['nb_images'] = isset($nb_images_of[$id]) ? $nb_images_of[$id] : 0; 477 477 array_push($cats, $row); 478 } 479 478 } 479 480 480 usort($cats, 'global_rank_compare'); 481 481 return array( … … 722 722 $ret['rates'] = array( WS_XML_ATTRIBUTES => $rating ); 723 723 $ret['categories'] = new PwgNamedArray($related_categories, 'category', array('id','url', 'page_url') ); 724 $ret['tags'] = new PwgNamedArray($related_tags, 'tag', array('id','url_name','url',' page_url') );724 $ret['tags'] = new PwgNamedArray($related_tags, 'tag', array('id','url_name','url','name','page_url') ); 725 725 if ( isset($comment_post_data) ) 726 726 { … … 976 976 977 977 list($width, $height) = getimagesize($file_path); 978 978 979 979 // database registration 980 980 $insert = array( … … 1026 1026 $rank_on_category = array(); 1027 1027 $search_current_ranks = false; 1028 1028 1029 1029 $tokens = explode(';', $params['categories']); 1030 1030 foreach ($tokens as $token) … … 1033 1033 1034 1034 array_push($cat_ids, $cat_id); 1035 1035 1036 1036 if (!isset($rank)) 1037 1037 { … … 1106 1106 ); 1107 1107 } 1108 1108 1109 1109 invalidate_user_cache(); 1110 1110 … … 1190 1190 ); 1191 1191 } 1192 return array('tags' => new PwgNamedArray($tags, 'tag', array('id','url_name','url', ' counter' )) );1192 return array('tags' => new PwgNamedArray($tags, 'tag', array('id','url_name','url', 'name', 'counter' )) ); 1193 1193 } 1194 1194 … … 1206 1206 return new PwgError(401, 'Access denied'); 1207 1207 } 1208 1208 1209 1209 $tags = get_all_tags(); 1210 1210 return array( … … 1366 1366 function ws_categories_add($params, &$service) 1367 1367 { 1368 if (!is_admin() )1368 if (!is_admin() or is_adviser()) 1369 1369 { 1370 1370 return new PwgError(401, 'Access denied'); … … 1382 1382 return new PwgError(500, $creation_output['error']); 1383 1383 } 1384 1384 1385 1385 return $creation_output; 1386 1386 }
Note: See TracChangeset
for help on using the changeset viewer.