modlist frage
Verfasst: 05.08.2004 03:17
kann man die modlist.php so ändern das die modliste nur registrierte user anschauen können?
hier mal der inhalt:
modlist.php
was muss geändert werden?
dany
hier mal der inhalt:
modlist.php
Code: Alles auswählen
<?php
/***************************************************************************
* acronyme.php
* ----------------
* begin : Sunday, Nov 9, 2003
* copyright : (C) 2003 AWSW
* url : http://www.awsw.de
*
* $Id: acronyme.php,v 2.00 2003/11/09 12:00:00 AWSW Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
// phpBB STANDARD START
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
define('SHOW_ONLINE', true);
$page_title = $lang['modslistWords_title'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'modslist_body.tpl')
);
// phpBB STANDARD END
$sql = "SELECT * FROM " . MODSLIST_TABLE . " ORDER BY word_id";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not query acronyme table", $lang['Error'], __LINE__, __FILE__, $sql);
}
$word_rows = $db->sql_fetchrowset($result);
$word_count = count($word_rows);
$template->assign_vars(array(
"L_WORDS_TITLE" => $lang['modslistWords_title'],
"L_WORD" => $lang['modslistWord'],
"L_REPLACEMENT" => $lang['modslistReplacement'],
"L_REPLACEMENT1" => $lang['modslistReplacement1'])
);
for($i = 0; $i < $word_count; $i++)
{
$word = $word_rows[$i]['word'];
$replacement = $word_rows[$i]['replacement'];
$replacement1 = $word_rows[$i]['replacement1'];
$word_id = $word_rows[$i]['word_id'];
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars("words", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"WORD" => $word,
"REPLACEMENT" => $replacement,
"REPLACEMENT1" => $replacement1)
);
}
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
dany