Changeset 8651 for trunk/include
- Timestamp:
- Jan 13, 2011, 4:24:18 PM (14 years ago)
- Location:
- trunk/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/config_default.inc.php
r8238 r8651 121 121 // or not ? 122 122 $conf['newcat_default_commentable'] = true; 123 124 // newcat_default_uploadable : at creation, must a category be uploadable or125 // not ?126 $conf['newcat_default_uploadable'] = false;127 123 128 124 // newcat_default_visible : at creation, must a category be visible or not ? … … 556 552 // If false it'll be redirected from index.php to identification.php 557 553 $conf['guest_access'] = true; 558 559 // +-----------------------------------------------------------------------+560 // | upload |561 // +-----------------------------------------------------------------------+562 563 // upload_maxfilesize: maximum filesize for the uploaded pictures. In564 // kilobytes.565 $conf['upload_maxfilesize'] = 200;566 567 // upload_maxheight: maximum height authorized for the uploaded images. In568 // pixels.569 $conf['upload_maxheight'] = 800;570 571 // upload_maxwidth: maximum width authorized for the uploaded images. In572 // pixels.573 $conf['upload_maxwidth'] = 800;574 575 // upload_maxheight_thumbnail: maximum height authorized for the uploaded576 // thumbnails577 $conf['upload_maxheight_thumbnail'] = 128;578 579 // upload_maxwidth_thumbnail: maximum width authorized for the uploaded580 // thumbnails581 $conf['upload_maxwidth_thumbnail'] = 128;582 554 583 555 // +-----------------------------------------------------------------------+ -
trunk/include/constants.php
r6363 r8651 78 78 if (!defined('USER_FEED_TABLE')) 79 79 define('USER_FEED_TABLE', $prefixeTable.'user_feed'); 80 if (!defined('WAITING_TABLE'))81 define('WAITING_TABLE', $prefixeTable.'waiting');82 80 if (!defined('RATE_TABLE')) 83 81 define('RATE_TABLE', $prefixeTable.'rate'); -
trunk/include/functions_notification.inc.php
r6951 r8651 55 55 * 56 56 * @param string action ('count' or 'info') 57 * @param string type of query ('new_comments', 'unvalidated_comments', 'new_elements', 'updated_categories', 'new_users' , 'waiting_elements')57 * @param string type of query ('new_comments', 'unvalidated_comments', 'new_elements', 'updated_categories', 'new_users') 58 58 * @param string start (mysql datetime format) 59 59 * @param string end (mysql datetime format) … … 146 146 ;'; 147 147 break; 148 case 'waiting_elements':149 $query = '150 FROM '.WAITING_TABLE.'151 WHERE validated = \'false\'152 ;';153 break;154 148 default: 155 149 // stop this function and return nothing … … 177 171 case 'new_users': 178 172 $field_id = 'user_id'; 179 break;180 case 'waiting_elements':181 $field_id = 'id';182 173 break; 183 174 } … … 206 197 $fields = array('user_id'); 207 198 break; 208 case 'waiting_elements':209 $fields = array('id');210 break;211 199 } 212 200 … … 345 333 { 346 334 return custom_notification_query('info', 'new_users', $start, $end); 347 }348 349 /**350 * currently waiting pictures351 *352 * @return count waiting ids353 */354 function nb_waiting_elements()355 {356 return custom_notification_query('count', 'waiting_elements', '', '');357 }358 359 /**360 * currently waiting pictures361 *362 * @return array waiting ids363 */364 function waiting_elements()365 {366 return custom_notification_query('info', 'waiting_elements', $start, $end);367 335 } 368 336 … … 387 355 (nb_updated_categories($start, $end) > 0) or 388 356 ((is_admin()) and (nb_unvalidated_comments($start, $end) > 0)) or 389 ((is_admin()) and (nb_new_users($start, $end) > 0)) or 390 ((is_admin()) and (nb_waiting_elements() > 0)) 357 ((is_admin()) and (nb_new_users($start, $end) > 0))) 391 358 ); 392 359 } … … 454 421 nb_new_users($start, $end), '%d new user', '%d new users', 455 422 get_root_url().'admin.php?page=user_list', $add_url ); 456 457 add_news_line( $news,458 nb_waiting_elements(), '%d waiting element', '%d waiting elements',459 get_root_url().'admin.php?page=upload', $add_url );460 423 } 461 424
Note: See TracChangeset
for help on using the changeset viewer.