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_prune.php | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'phpBB/admin/admin_prune.php') diff --git a/phpBB/admin/admin_prune.php b/phpBB/admin/admin_prune.php index 0281f1a398..fadcf1e0a5 100644 --- a/phpBB/admin/admin_prune.php +++ b/phpBB/admin/admin_prune.php @@ -44,7 +44,7 @@ require($phpbb_root_path . 'includes/functions_admin.'.$phpEx); // Do we have forum admin permissions? if ( !$auth->acl_get('a_forum') ) { - message_die(MESSAGE, $lang['No_admin']); + message_die(MESSAGE, $user->lang['No_admin']); } // @@ -107,11 +107,11 @@ if ( isset($_POST['doprune']) ) } $template->assign_vars(array( - 'L_FORUM_PRUNE' => $lang['Forum_Prune'], - 'L_FORUM' => $lang['Forum'], - 'L_TOPICS_PRUNED' => $lang['Topics_pruned'], - 'L_POSTS_PRUNED' => $lang['Posts_pruned'], - 'L_PRUNE_RESULT' => $lang['Prune_success']) + 'L_FORUM_PRUNE' => $user->lang['Forum_Prune'], + 'L_FORUM' => $user->lang['Forum'], + 'L_TOPICS_PRUNED' => $user->lang['Topics_pruned'], + 'L_POSTS_PRUNED' => $user->lang['Posts_pruned'], + 'L_PRUNE_RESULT' => $user->lang['Prune_success']) ); add_admin_log('log_prune', $log_data); @@ -119,7 +119,7 @@ if ( isset($_POST['doprune']) ) } else { - page_header($lang['Prune']); + page_header($user->lang['Prune']); // // If they haven't selected a forum for pruning yet then @@ -130,7 +130,7 @@ else // // Output a selection table if no forum id has been specified. // - $select_list = ''; + $select_list = ''; $right = 0; $subforum = ''; @@ -153,16 +153,16 @@ else ?> -

+

lang['Prune']; ?>

-

+

lang['Forum_Prune_explain']; ?>

"> - + - +
lang['Select_a_Forum']; ?>
        
@@ -171,30 +171,30 @@ else } else { - $forum_name = ( $forum_id == -1 ) ? $lang['All_Forums'] : $forum_rows[0]['forum_name']; + $forum_name = ( $forum_id == -1 ) ? $user->lang['All_Forums'] : $forum_rows[0]['forum_name']; - $prune_data = $lang['Prune_topics_not_posted'] . " "; - $prune_data .= ' ' . $lang['Days']; + $prune_data = $user->lang['Prune_topics_not_posted'] . " "; + $prune_data .= ' ' . $user->lang['Days']; $s_hidden_fields = ''; ?> -

+

lang['Prune']; ?>

-

+

lang['Forum_Prune_explain']; ?>

-

+

lang['Forum'] . ': ' . $forum_name; ?>

"> - + - +
lang['Forum_Prune']; ?>
-- cgit v1.2.1