|
From: Jon O. <jon...@us...> - 2008-03-14 20:42:43
|
Update of /cvsroot/mxbb/mx_news/mx_news/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2452/admin Modified Files: admin_setting.php Log Message: Now virtual page compatible Lots of code cleanup Index: admin_setting.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news/admin/admin_setting.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** admin_setting.php 8 Feb 2008 21:58:20 -0000 1.1 --- admin_setting.php 14 Mar 2008 20:42:37 -0000 1.2 *************** *** 66,130 **** // - // Appearance - // - /* - $pagination = $new['pagination']; - - $sort_method_options = array(); - $sort_method_options = array( "link_name", "link_time", "link_hits" ); - - $sort_method_list = '<select name="sort_method">'; - for( $j = 0; $j < count( $sort_method_options ); $j++ ) - { - if ( $new['sort_method'] == $sort_method_options[$j] ) - { - $status = "selected"; - } - else - { - $status = ''; - } - $sort_method_list .= '<option value="' . $sort_method_options[$j] . '" ' . $status . '>' . $sort_method_options[$j] . '</option>'; - } - $sort_method_list .= '</select>'; - - $sort_order_options = array(); - $sort_order_options = array( "DESC", "ASC" ); - - $sort_order_list = '<select name="sort_order">'; - - for( $j = 0; $j < count( $sort_order_options ); $j++ ) - { - if ( $new['sort_order'] == $sort_order_options[$j] ) - { - $status = "selected"; - } - else - { - $status = ''; - } - $sort_order_list .= '<option value="' . $sort_order_options[$j] . '" ' . $status . '>' . $sort_order_options[$j] . '</option>'; - } - $sort_order_list .= '</select>'; - - $settings_newdays = $new['settings_newdays']; - $cat_col = $new['cat_col']; - - $use_simple_navigation_yes = ( $new['use_simple_navigation'] ) ? "checked=\"checked\"" : ""; - $use_simple_navigation_no = ( !$new['use_simple_navigation'] ) ? "checked=\"checked\"" : ""; - */ - - // - // Instructions - // - /* - $pretext_show = ( $new['show_pretext'] ) ? "checked=\"checked\"" : ""; - $pretext_hide = ( !$new['show_pretext'] ) ? "checked=\"checked\"" : ""; - - $pt_header = $new['pt_header']; - $pt_body = $new['pt_body']; - */ - - // // Comments (default settings) // --- 66,69 ---- *************** *** 203,220 **** // - // Ratings (default settings) - // - /* - $use_ratings_yes = ( $new['use_ratings'] ) ? "checked=\"checked\"" : ""; - $use_ratings_no = ( !$new['use_ratings'] ) ? "checked=\"checked\"" : ""; - - $votes_check_ip_yes = ( $new['votes_check_ip'] ) ? "checked=\"checked\"" : ""; - $votes_check_ip_no = ( !$new['votes_check_ip'] ) ? "checked=\"checked\"" : ""; - - $votes_check_userid_yes = ( $new['votes_check_userid'] ) ? "checked=\"checked\"" : ""; - $votes_check_userid_no = ( !$new['votes_check_userid'] ) ? "checked=\"checked\"" : ""; - */ - - // // Notifications // --- 142,145 ---- *************** *** 255,322 **** 'WYSIWYG_PATH' => $wysiwyg_path, - 'L_SITE_LOGO' => $lang['site_logo'], - 'SITE_LOGO' => $new['site_logo'], - - 'L_SITE_URL' => $lang['site_url'], - 'SITE_URL' => $new['site_url'], - - 'L_LOCK_SUBMIT_SITE' => $lang['lock_submit_site'], - 'LOCK_SUBMIT_SITE_YES' => ( $new['lock_submit_site'] ) ? "checked=\"checked\"" : "", - 'LOCK_SUBMIT_SITE_NO' => ( !$new['lock_submit_site'] ) ? "checked=\"checked\"" : "", - - 'L_DISPLAY_INTERVAL' => $lang['interval'], - 'INTERVAL' => $new['display_interval'], - - - // - // Link - // - 'L_WIDTH' => $lang['width'], - 'WIDTH' => $new['width'], - - 'L_HEIGHT' => $lang['height'], - 'HEIGHT' => $new['height'], - - 'SPLIT_LINKS_YES' => ( $new['split_links'] ) ? "checked=\"checked\"" : "", - 'SPLIT_LINKS_NO' => ( !$new['split_links'] ) ? "checked=\"checked\"" : "", - 'L_SPLIT_LINKS' => $lang['split_links'], - - 'L_ALLOW_NO_LOGO' => $lang['allow_no_logo'], - 'ALLOW_NO_LOGO_YES' => ( $new['allow_no_logo'] ) ? "checked=\"checked\"" : "", - 'ALLOW_NO_LOGO_NO' => ( !$new['allow_no_logo'] ) ? "checked=\"checked\"" : "", - - 'L_DISPLAY_LINKS_LOGO' => $lang['Link_display_links_logo'], - 'DISLAY_LINKS_LOGO_YES' => ( $new['display_links_logo'] ) ? "checked=\"checked\"" : "", - 'DISLAY_LINKS_LOGO_NO' => ( !$new['display_links_logo'] ) ? "checked=\"checked\"" : "", - - // - // Appearance - // - 'L_APPEARANCE_TITLE' => $lang['Appearance_title'], - - 'L_PAGINATION' => $lang['File_pagination'], - 'L_PAGINATION_EXPLAIN' => $lang['File_pagination_explain'], - 'PAGINATION' => $pagination, - - 'L_SORT_METHOD' => $lang['Sort_method'], - 'L_SORT_METHOD_EXPLAIN' => $lang['Sort_method_explain'], - 'SORT_METHOD' => $sort_method_list, - - 'L_SORT_ORDER' => $lang['Sort_order'], - 'L_SORT_ORDER_EXPLAIN' => $lang['Sort_order_explain'], - 'SORT_ORDER' => $sort_order_list, - - 'CAT_COL' => $cat_col, - 'L_CAT_COL' => $lang['Cat_col'], - - 'S_USE_SIMPLE_NAVIGATION_YES' => $use_simple_navigation_yes, - 'S_USE_SIMPLE_NAVIGATION_NO' => $use_simple_navigation_no, - 'L_USE_SIMPLE_NAVIGATION' => $lang['Use_simple_navigation'], - 'L_USE_SIMPLE_NAVIGATION_EXPLAIN' => $lang['Use_simple_navigation_explain'], - - 'L_NFDAYS' => $lang['Nfdays'], - 'L_NFDAYSINFO' => $lang['Nfdaysinfo'], - 'SETTINGS_NEWDAYS' => $settings_newdays, - // // Comments --- 180,183 ---- *************** *** 420,460 **** // - // Ratings - // - 'L_RATINGS_TITLE' => $lang['Ratings_title'], - 'L_RATINGS_TITLE_EXPLAIN' => $lang['Ratings_title_explain'], - - 'L_USE_RATINGS' => $lang['Use_ratings'], - 'L_USE_RATINGS_EXPLAIN' => $lang['Use_ratings_explain'], - 'S_USE_RATINGS_YES' => $use_ratings_yes, - 'S_USE_RATINGS_NO' => $use_ratings_no, - - 'L_VOTES_CHECK_IP' => $lang['Votes_check_ip'], - 'L_VOTES_CHECK_IP_EXPLAIN' => $lang['Votes_check_ip_explain'], - 'S_VOTES_CHECK_IP_YES' => $votes_check_ip_yes, - 'S_VOTES_CHECK_IP_NO' => $votes_check_ip_no, - - 'L_VOTES_CHECK_USERID' => $lang['Votes_check_userid'], - 'L_VOTES_CHECK_USERID_EXPLAIN' => $lang['Votes_check_userid_explain'], - 'S_VOTES_CHECK_USERID_YES' => $votes_check_userid_yes, - 'S_VOTES_CHECK_USERID_NO' => $votes_check_userid_no, - - // - // Instructions - // - 'L_INSTRUCTIONS_TITLE' => $lang['Instructions_title'], - - 'L_SHOW' => $lang['Show'], - 'L_HIDE' => $lang['Hide'], - 'L_PRE_TEXT_NAME' => $lang['Pre_text_name'], - 'L_PRE_TEXT_HEADER' => $lang['Pre_text_header'], - 'L_PRE_TEXT_BODY' => $lang['Pre_text_body'], - 'L_PRE_TEXT_EXPLAIN' => $lang['Pre_text_explain'], - 'S_SHOW_PRETEXT' => $pretext_show, - 'S_HIDE_PRETEXT' => $pretext_hide, - 'L_PT_HEADER' => $pt_header, - 'L_PT_BODY' => $pt_body, - - // // Notifications // --- 281,284 ---- |