Changeset 2159
- Timestamp:
- Nov 2, 2007, 12:08:27 AM (17 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_notification.inc.php
r1957 r2159 30 30 31 31 /* 32 * get standard sql where in order to 32 * get standard sql where in order to 33 33 * restict an filter caregories and images 34 34 * … … 84 84 $query = ' 85 85 FROM '.COMMENTS_TABLE.' 86 WHERE date <= \''.$end.'\' 87 AND (validated = \'false\' 88 OR validation_date > \''.$end.'\') 86 WHERE date> \''.$start.'\' AND date <= \''.$end.'\' 87 AND validated = \'false\' 89 88 ;'; 90 89 break; … … 227 226 * Comments that are registered and not validated yet on a precise date 228 227 * 229 * @param string date (mysql datetime format) 228 * @param string start (mysql datetime format) 229 * @param string end (mysql datetime format) 230 230 * @return count comment ids 231 231 */ 232 function nb_unvalidated_comments($date) 233 { 234 return custom_notification_query('count', 'unvalidated_comments', $date, $date); 235 } 236 237 /** 238 * unvalidated at a precise date 239 * 240 * Comments that are registered and not validated yet on a precise date 241 * 242 * @param string date (mysql datetime format) 243 * @return array comment ids 244 */ 245 function unvalidated_comments($date) 246 { 247 return custom_notification_query('info', 'unvalidated_comments', $start, $end); 248 } 232 function nb_unvalidated_comments($start, $end) 233 { 234 return custom_notification_query('count', 'unvalidated_comments', $start, $end); 235 } 236 249 237 250 238 /** … … 363 351 (nb_new_elements($start, $end) > 0) or 364 352 (nb_updated_categories($start, $end) > 0) or 365 ((is_admin()) and (nb_unvalidated_comments($ end) > 0)) or353 ((is_admin()) and (nb_unvalidated_comments($start, $end) > 0)) or 366 354 ((is_admin()) and (nb_new_users($start, $end) > 0)) or 367 355 ((is_admin()) and (nb_waiting_elements() > 0)) … … 425 413 { 426 414 add_news_line( $news, 427 nb_unvalidated_comments($ end), '%d comment to validate', '%d comments to validate',415 nb_unvalidated_comments($start, $end), '%d comment to validate', '%d comments to validate', 428 416 get_root_url().'admin.php?page=comments', $add_url ); 429 417 … … 514 502 515 503 /* 516 Call function get_recent_post_dates but 504 Call function get_recent_post_dates but 517 505 the parameters to be passed to the function, as an indexed array. 518 506 519 507 */ 520 508 function get_recent_post_dates_array($args) … … 539 527 540 528 $description = ''; 541 529 542 530 $description .= 543 531 '<li>' -
trunk/include/page_header.php
r2126 r2159 54 54 'TAG_INPUT_ENABLED' => 55 55 ((is_adviser()) ? 'disabled onclick="return false;"' : ''), 56 'U_HOME' => get_absolute_root_url(),56 'U_HOME' => make_index_url(), 57 57 )); 58 58
Note: See TracChangeset
for help on using the changeset viewer.