Changeset 2286 for trunk/admin
- Timestamp:
- Mar 20, 2008, 1:35:36 AM (17 years ago)
- Location:
- trunk/admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_modify.php
r2223 r2286 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 7PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | file : $Id$ … … 209 209 210 210 // Navigation path 211 $url = PHPWG_ROOT_PATH.'admin.php?page=cat_modify&cat_id=';212 213 211 $navigation = get_cat_display_name_cache( 214 212 $category['uppercats'], 215 PHPWG_ROOT_PATH.'admin.php?page=cat_modify&cat_id='213 get_root_url().'admin.php?page=cat_modify&cat_id=' 216 214 ); 217 215 218 $form_action = PHPWG_ROOT_PATH.'admin.php?page=cat_modify&cat_id='.$_GET['cat_id'];216 $form_action = get_root_url().'admin.php?page=cat_modify&cat_id='.$_GET['cat_id']; 219 217 220 218 //----------------------------------------------------- template initialization 221 219 $template->set_filename( 'categories', 'admin/cat_modify.tpl'); 222 220 223 $base_url = PHPWG_ROOT_PATH.'admin.php?page=';221 $base_url = get_root_url().'admin.php?page='; 224 222 $cat_list_url = $base_url.'cat_list'; 225 223 … … 237 235 238 236 'status_values' => array('public','private'), 239 'false_true' => array('false', 'true'),240 'no_yes' => array('no','yes'),241 237 242 238 'CAT_STATUS' => $category['status'], … … 257 253 ? '' : stripslashes($_POST['mail_content']), 258 254 'U_CHILDREN' => $cat_list_url.'&parent_id='.$category['id'], 259 'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=cat_modify',255 'U_HELP' => get_root_url().'popuphelp.php?page=cat_modify', 260 256 261 257 'F_ACTION' => $form_action, … … 368 364 $row = mysql_fetch_array(pwg_query($query)); 369 365 $src = get_thumbnail_url($row); 370 $url = PHPWG_ROOT_PATH.'admin.php?page=picture_modify';366 $url = get_root_url().'admin.php?page=picture_modify'; 371 367 $url.= '&image_id='.$category['representative_picture_id']; 372 368 -
trunk/admin/include/check_integrity.class.php
r2269 r2286 260 260 $submit_ignore = true; 261 261 } 262 262 263 263 $template->append('c13y_list', $c13y_display); 264 264 } … … 267 267 $template->assign('c13y_show_submit_ignore', $submit_ignore); 268 268 269 $template->concat _var('ADMIN_CONTENT', $template->parse('check_integrity', true));269 $template->concat('ADMIN_CONTENT', $template->parse('check_integrity', true)); 270 270 271 271 } -
trunk/admin/notification_by_mail.php
r2285 r2286 583 583 ); 584 584 585 $template->assign _vars585 $template->assign 586 586 ( 587 587 array … … 629 629 } 630 630 631 $template->assign_block_vars 632 ( 633 'repost', 634 array 635 ( 636 'REPOST_SUBMIT_NAME' => $repost_submit_name 637 ) 638 ); 631 $template->assign('REPOST_SUBMIT_NAME', $repost_submit_name); 639 632 } 640 633 … … 643 636 case 'param' : 644 637 { 645 $template->assign _block_vars(638 $template->assign( 646 639 $page['mode'], 647 640 array( 648 'SEND_HTML_MAIL_YES' => ($conf['nbm_send_html_mail'] ? 'checked="checked"' : ''), 649 'SEND_HTML_MAIL_NO' => (!$conf['nbm_send_html_mail'] ? 'checked="checked"' : ''), 641 'SEND_HTML_MAIL' => $conf['nbm_send_html_mail'], 650 642 'SEND_MAIL_AS' => $conf['nbm_send_mail_as'], 651 'SEND_DETAILED_CONTENT_YES' => ($conf['nbm_send_detailed_content'] ? 'checked="checked"' : ''), 652 'SEND_DETAILED_CONTENT_NO' => (!$conf['nbm_send_detailed_content'] ? 'checked="checked"' : ''), 643 'SEND_DETAILED_CONTENT' => $conf['nbm_send_detailed_content'], 653 644 'COMPLEMENTARY_MAIL_CONTENT' => $conf['nbm_complementary_mail_content'], 654 'SEND_RECENT_POST_DATES_YES' => ($conf['nbm_send_recent_post_dates'] ? 'checked="checked"' : ''), 655 'SEND_RECENT_POST_DATES_NO' => (!$conf['nbm_send_recent_post_dates'] ? 'checked="checked"' : '') 645 'SEND_RECENT_POST_DATES' => $conf['nbm_send_recent_post_dates'], 656 646 )); 657 647 break; … … 660 650 case 'subscribe' : 661 651 { 662 $template->assign_block_vars( 663 $page['mode'], 664 array( 665 )); 666 667 $template->assign_vars( 652 $template->assign( $page['mode'], true ); 653 654 $template->assign( 668 655 array( 669 656 'L_CAT_OPTIONS_TRUE' => l10n('nbm_subscribe_col'), … … 701 688 'category_option_true_selected' => $opt_true_selected, 702 689 'category_option_false' => $opt_false, 703 'category_option_ true_selected' => $opt_false_selected,690 'category_option_false_selected' => $opt_false_selected, 704 691 ) 705 692 ); 693 $template->assign_var_from_handle('DOUBLE_SELECT', 'double_select'); 706 694 break; 707 695 } … … 709 697 case 'send' : 710 698 { 711 $t emplate->assign_block_vars($page['mode'], array());699 $tpl_var = array('users'=> array() ); 712 700 713 701 $data_users = do_action_send_mail_notification('list_to_send'); 714 702 715 if (count($data_users) == 0) 716 { 717 $template->assign_block_vars($page['mode'].'.send_empty', array()); 718 } 719 else 720 { 721 $template->assign_block_vars( 722 $page['mode'].'.send_data', 723 array( 724 'CUSTOMIZE_MAIL_CONTENT' => isset($_POST['send_customize_mail_content']) ? stripslashes($_POST['send_customize_mail_content']) : $conf['nbm_complementary_mail_content'] 725 )); 726 727 foreach ($data_users as $num => $nbm_user) 703 $tpl_var['CUSTOMIZE_MAIL_CONTENT'] = 704 isset($_POST['send_customize_mail_content']) 705 ? stripslashes($_POST['send_customize_mail_content']) 706 : $conf['nbm_complementary_mail_content']; 707 708 if (count($data_users)) 709 { 710 foreach ($data_users as $nbm_user) 728 711 { 729 712 if ( … … 732 715 ) 733 716 { 734 $template->assign_block_vars( 735 $page['mode'].'.send_data.user_send_mail', 717 $tpl_var['users'][] = 736 718 array( 737 'CLASS' => ($num % 2 == 1) ? 'nbm_user2' : 'nbm_user1',738 719 'ID' => $nbm_user['check_key'], 739 720 'CHECKED' => ( // not check if not selected, on init select<all … … 744 725 'EMAIL' => get_email_address_as_display_text($nbm_user['mail_address']), 745 726 'LAST_SEND'=> $nbm_user['last_send'] 746 ) );747 } 748 } 749 } 750 727 ); 728 } 729 } 730 } 731 $template->assign($page['mode'], $tpl_var); 751 732 break; 752 733 } … … 756 737 // | Sending html code | 757 738 // +-----------------------------------------------------------------------+ 758 $template->assign_var_from_handle('DOUBLE_SELECT', 'double_select');759 739 $template->assign_var_from_handle('ADMIN_CONTENT', 'notification_by_mail'); 760 740 -
trunk/admin/user_list.php
r2253 r2286 441 441 442 442 redirect( 443 PHPWG_ROOT_PATH.443 get_root_url(). 444 444 'admin.php'. 445 445 get_query_string_diff(array(), false) … … 484 484 $template->assign( 485 485 array( 486 'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=user_list',486 'U_HELP' => get_root_url().'popuphelp.php?page=user_list', 487 487 488 488 'F_ADD_ACTION' => $base_url, 489 489 'F_USERNAME' => @htmlentities($_GET['username']), 490 'F_FILTER_ACTION' => PHPWG_ROOT_PATH.'admin.php'490 'F_FILTER_ACTION' => get_root_url().'admin.php' 491 491 )); 492 492 … … 525 525 if (isset($_POST['pref_submit'])) 526 526 { 527 // echo '<pre>'; print_r($_POST); echo '</pre>';528 527 $template->assign( 529 528 array( 530 'ADVISER_YES' => 'true' == (isset($_POST['adviser']) and $_POST['adviser']) ? 'checked="checked"' : '',531 'ADVISER_NO' => 'false' == (isset($_POST['adviser']) and $_POST['adviser']) ? 'checked="checked"' : '',532 529 'NB_IMAGE_LINE' => $_POST['nb_image_line'], 533 530 'NB_LINE_PAGE' => $_POST['nb_line_page'], … … 535 532 'MAXHEIGHT' => $_POST['maxheight'], 536 533 'RECENT_PERIOD' => $_POST['recent_period'], 537 'EXPAND_YES' => 'true' == $_POST['expand'] ? 'checked="checked"' : '',538 'EXPAND_NO' => 'false' == $_POST['expand'] ? 'checked="checked"' : '',539 'SHOW_NB_COMMENTS_YES' => 'true' == $_POST['show_nb_comments'] ? 'checked="checked"' : '',540 'SHOW_NB_COMMENTS_NO' => 'false' == $_POST['show_nb_comments'] ? 'checked="checked"' : '',541 'SHOW_NB_HITS_YES' => 'true' == $_POST['show_nb_hits'] ? 'checked="checked"' : '',542 'SHOW_NB_HITS_NO' => 'false' == $_POST['show_nb_hits'] ? 'checked="checked"' : '',543 'ENABLED_HIGH_YES' => 'true' == $_POST['enabled_high'] ? 'checked="checked"' : '',544 'ENABLED_HIGH_NO' => 'false' == $_POST['enabled_high'] ? 'checked="checked"' : '',545 546 'STATUS_ACTION_SET' => 'set' == $_POST['status_action'] ? 'checked="checked"' : '',547 'LEVEL_ACTION_SET' => 'set' == $_POST['level_action'] ? 'checked="checked"' : '',548 'NB_IMAGE_LINE_ACTION_SET' => 'set' == $_POST['nb_image_line_action'] ? 'checked="checked"' : '',549 'NB_LINE_PAGE_ACTION_SET' => 'set' == $_POST['nb_line_page_action'] ? 'checked="checked"' : '',550 'TEMPLATE_ACTION_SET' => 'set' == $_POST['template_action'] ? 'checked="checked"' : '',551 'LANGUAGE_ACTION_SET' => 'set' == $_POST['language_action'] ? 'checked="checked"' : '',552 'RECENT_PERIOD_ACTION_SET' => 'set' == $_POST['recent_period_action'] ? 'checked="checked"' : '',553 'MAXWIDTH_ACTION_SET' => 'set' == $_POST['maxwidth_action'] ? 'checked="checked"' : '',554 'MAXHEIGHT_ACTION_SET' => 'set' == $_POST['maxheight_action'] ? 'checked="checked"' : '',555 534 )); 556 535 } … … 646 625 } 647 626 627 // allow plugins to fill template var plugin_user_list_column_titles and 628 // plugin_columns/plugin_actions for each user in the list 648 629 $visible_user_list = trigger_event('loc_visible_user_list', $visible_user_list); 649 630 650 foreach ($visible_user_list as $ num => $local_user)631 foreach ($visible_user_list as $local_user) 651 632 { 652 633 $groups_string = preg_replace( … … 697 678 'GROUPS' => $groups_string, 698 679 'PROPERTIES' => implode( ', ', $properties), 680 'plugin_columns' => isset($local_user['plugin_columns']) ? $local_user['plugin_columns'] : array(), 681 'plugin_actions' => isset($local_user['plugin_actions']) ? $local_user['plugin_actions'] : array(), 699 682 ) 700 683 ); 701 trigger_action('loc_append_user_list', $local_user);702 684 } 703 685
Note: See TracChangeset
for help on using the changeset viewer.