From 0e9f0ac4ecc636336603cc6932ce21a550c7087e Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 20 Oct 2002 19:19:07 +0000 Subject: Mostly changes to turn userdata into user->data, lang into user->lang + bitstring 2nd format + inheritance for permission admin and various other updates/fixes/changes ... note that user->lang & user->theme isn't final git-svn-id: file:///svn/phpbb/trunk@2958 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_styles.php | 119 ++++++++++++++++++++++++------------------- 1 file changed, 66 insertions(+), 53 deletions(-) (limited to 'phpBB/admin/admin_styles.php') diff --git a/phpBB/admin/admin_styles.php b/phpBB/admin/admin_styles.php index c7b5a8888c..ebe5459762 100644 --- a/phpBB/admin/admin_styles.php +++ b/phpBB/admin/admin_styles.php @@ -29,7 +29,7 @@ require('pagestart.' . $phpEx); // if ( !$auth->acl_get('a_styles') ) { - message_die(MESSAGE, $lang['No_admin']); + message_die(MESSAGE, $user->lang['No_admin']); } /* @@ -53,17 +53,8 @@ $mode = ( isset($_GET['mode']) ) ? $_GET['mode'] : $_POST['mode']; switch ( $mode ) { case 'editimageset': - $imgroot = ( isset($_POST['imgroot']) ) ? $_POST['imgroot'] : 'subSilver'; + $imgroot = ( isset($_POST['imgroot']) ) ? $_POST['imgroot'] : $board_config['default_style']; - if ( isset($_POST['img_root']) ) - { - $sql = "SELECT * - FROM " . STYLES_IMAGE_TABLE . " - WHERE imageset_path LIKE '" . $_POST['imgroot'] . "'"; - $result = $db->sql_query($sql); - - $images = $db->sql_fetchrow($result); - } if ( isset($_POST['img_addconfig']) ) { } @@ -71,7 +62,7 @@ switch ( $mode ) { } - $imageset = array('imageset_path', 'post_new', 'post_locked', 'post_pm', 'reply_new', 'reply_pm', 'reply_locked', 'icon_profile', 'icon_pm', 'icon_delete', 'icon_ip', 'icon_quote', 'icon_search', 'icon_edit', 'icon_email', 'icon_www', 'icon_icq', 'icon_aim', 'icon_yim', 'icon_msnm', 'icon_no_email', 'icon_no_www', 'icon_no_icq', 'icon_no_aim', 'icon_no_yim', 'icon_no_msnm', 'goto_post', 'goto_post_new', 'goto_post_latest', 'goto_post_newest', 'forum', 'forum_new', 'forum_locked', 'folder', 'folder_new', 'folder_hot', 'folder_hot_new', 'folder_locked', 'folder_locked_new', 'folder_sticky', 'folder_sticky_new', 'folder_announce', 'folder_announce_new', 'topic_watch', 'topic_unwatch', 'poll_left', 'poll_center', 'poll_right', 'rating'); + $imageset = array('imageset_path', 'post_new', 'post_locked', 'post_pm', 'reply_new', 'reply_pm', 'reply_locked', 'icon_profile', 'icon_pm', 'icon_delete', 'icon_ip', 'icon_quote', 'icon_search', 'icon_edit', 'icon_email', 'icon_www', 'icon_icq', 'icon_aim', 'icon_yim', 'icon_msnm', 'icon_no_email', 'icon_no_www', 'icon_no_icq', 'icon_no_aim', 'icon_no_yim', 'icon_no_msnm', 'goto_post', 'goto_post_new', 'goto_post_latest', 'goto_post_newest', 'forum', 'forum_new', 'forum_locked', 'sub_forum', 'sub_forum_new', 'folder', 'folder_new', 'folder_hot', 'folder_hot_new', 'folder_locked', 'folder_locked_new', 'folder_sticky', 'folder_sticky_new', 'folder_announce', 'folder_announce_new', 'topic_watch', 'topic_unwatch', 'poll_left', 'poll_center', 'poll_right', 'rating'); $sql = "SELECT imageset_name, imageset_path FROM " . STYLES_IMAGE_TABLE . " @@ -100,42 +91,64 @@ switch ( $mode ) // // Output page // - page_header($lang['Styles']); + page_header($user->lang['Edit_Imageset']); - echo '
'; +?> - echo '

Edit Imageset

'; + - echo '

Template set:  

'; +

Edit Imageset

- echo '

Use this panel to edit or remove imagesets from the database.

'; +

Template set:    

- echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; +

Here you can create, edit, delete and download imagesets.

- for($i = 0; $i < count($imageset); $i++) - { - $class = ( !($i%2) ) ? 'row1' : 'row2'; - - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - } +sql_query($sql); + + $images = $db->sql_fetchrow($result); + +?> +
Available images:
ImageSourceWidthHeightBorder 
' . ucfirst(str_replace('_', ' ', $imageset[$i])) . '  
+ + + +' : ''; + $img = str_replace('"imagesets/', '"../imagesets/', $img); + $img = str_replace('{LANG}', $user->img_lang, $img); + $img = str_replace('{RATE}', 3, $img); +?> + + + + + + + + + +
ImageGraphic 
 
+ +     '; - echo ''; - echo ''; - echo ''; page_footer(); break; @@ -205,17 +218,17 @@ switch ( $mode ) // // // - page_header($lang['Edit_template']); + page_header($user->lang['Edit_template']); ?> -

+

lang['Edit_template']; ?>

-

+

lang['Edit_template_explain']; ?>

"> -

:  

+

lang['Select_template']; ?>:  

@@ -265,11 +278,11 @@ switch ( $mode ) add_admin_log('log_theme_edit', $theme_name); - message_die(MESSAGE, $lang['Success_theme_update']); + message_die(MESSAGE, $user->lang['Success_theme_update']); } } - page_header($lang['Edit_theme']); + page_header($user->lang['Edit_theme']); $sql = "SELECT theme_id, theme_name FROM " . STYLES_CSS_TABLE; @@ -306,24 +319,24 @@ switch ( $mode ) "> -

+

lang['Edit_theme']; ?>

-

+

lang['Edit_theme_explain']; ?>

- + - + - + - +
:   lang['Select_theme']; ?>:  
:
lang['CSS_data']; ?>:
lang['CSS_data_explain']; ?>
: lang['CSS_sheet']; ?>:
    
-- cgit v1.2.1