[問題]請問早安少女-戀愛熱舞站的這種規格
發表於 : 2004-02-06 19:41
代碼: 選擇全部
########################################################
## Mod Title: ezPortal Admin for phpBB2 with ezportal_admin_db_install
## Mod Version: 1.0.3
##
## Original Author: Marcus Thiel <thundercat@die-pretorianer.de>
## www.die-pretorianer.de
##
## Updating Author: Willie Yaw <cyborg@cyborgworks.com>
##
## and Author of ezportal_admin_db_install.php
##
## Author ezPortal: Smartor <smartor_xp@hotmail.com> -
## http://smartor.is-root.com
## Description: This mod will add a small administration menu for the
## ezPortal from Smartor
##
## Installation Level: easy
## Installation Time: 4-6 Minutes
## Files To Edit: 1
##
## /portal.php
## /language/lang_english/lang_admin.php
## and/or /language/lang_german/lang_admin.php
##
## Included Files: /admin/admin_portal.php
## /templates/admin/portal_config_body.php
## /ezportal_admin_db_install.php
##
##
#################################################################
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any ## Non-Official phpBB Sites
#################################################################
##
## Author Note:
##
## I hope you enjoy this mod, i try to add more function in the
## future.
## This is my first mod. If you find any bugs please send me an email.
## The template uses classes from the fisubice template from
## www.forumimages.com.
## Maybe you have to change some of the classes to get this template ## work with
## the subSilver
##
#################################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files
## Related To This MOD
#################################################################
##
## Revision History:
##
## v1.0.0
## - Initial Release
##--------------------------------------------------------------
## January 2nd 2003
##
## v 1.0.3 Updated by Willie Yaw {aka} Cyborg <cyborg@cyborgworks.com>
##
## 1.added ezportal_admin_db_install.php and made minor change to
## portal_value
## changed from
## portal_value ` VARCHAR( 255 ) NOT NULL ,
## to
## portal_value ` TEXT NOT NULL , "so as not to limit Welcome message
## to 255 characters"
##
## 2. made minor changes to portal_config_body.tpl
## made Welcome Message input box bigger and with scroll bar
## to make editing much easier.
##
##
##
#################################################################
#
#-----[UPLOAD to root and RUN ]------------------------------------------
#
ezportal_admin_db_install.php ["Warning" delete after install!!!]
#
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/portal.php
#
#-----[ FIND ]------------------------------------------
#
$CFG['welcome_text'] =
#
#-----[ REPLACE, WITH ]------------------------------------------
#
// $CFG['welcome_text'] =
#
#-----[ FIND ]------------------------------------------
#
$CFG['number_of_news'] =
#
#-----[ REPLACE, WITH ]------------------------------------------
#
// $CFG['number_of_news'] =
#
#-----[ FIND ]------------------------------------------
#
$CFG['news_length'] =
#
#-----[ REPLACE, WITH ]------------------------------------------
#
// $CFG['news_length'] =
#
#-----[ FIND ]------------------------------------------
#
$CFG['news_forum'] =
#
#-----[ REPLACE, WITH ]------------------------------------------
#
// $CFG['news_forum'] =
#
#-----[ FIND ]------------------------------------------
#
$CFG['poll_forum'] =
#
#-----[ REPLACE, WITH ]------------------------------------------
#
// $CFG['poll_forum'] =
#
#-----[ FIND ]------------------------------------------
#
# Only if you have installed, the "number of recent topics" block !
$CFG['number_recent_topics'] =
#
#-----[ REPLACE, WITH ]------------------------------------------
#
// $CFG['number_recent_topics'] =
#
#-----[ FIND ]------------------------------------------
#
# Only if you have installed, the "last seen" block !
$CFG['last_seen'] =
#
#-----[ REPLACE, WITH ]------------------------------------------
#
// $CFG['last_seen'] =
#
#-----[ FIND ]------------------------------------------
#
if( $total_users == 0 )
{
$l_total_user_s = $lang['Registered_users_zero_total'];
}
else if( $total_users == 1 )
{
$l_total_user_s = $lang['Registered_user_total'];
}
else
{
$l_total_user_s = $lang['Registered_users_total'];
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Read Portal Configuration from DB
define('PORTAL_TABLE', $table_prefix.'portal');
$CFG = array();
$sql = "SELECT * FROM " . PORTAL_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$CFG[$row['portal_name']] = $row['portal_value'];
}
#
#-----[ FIND ]------------------------------------------
#
# Only if you have installed, the "last seen" block !
//
// last seen hack
//
$sql = "SELECT username, user_id, user_lastvisit FROM phpbb_users WHERE user_id > 0 AND user_level <> 1 ORDER BY user_lastvisit DESC LIMIT 10";
#
#-----[ REPLACE, WITH ]------------------------------------------
#
//
// last seen hack
//
$sql = "SELECT username, user_id, user_lastvisit FROM " . USERS_TABLE . " WHERE user_id > 0 AND username <> 'Anonymous' ORDER BY user_lastvisit DESC LIMIT " . $CFG['last_seen'];
#
#-----[ OPEN ]------------------------------------------
#
phpBB2/language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]-----------------------------------
#
//
// mod : ezportal Admin
//
$lang['EZPortal_Config'] = 'EZPortal Configuration';
$lang['EZPortal_Portal_settings'] = 'EZPortal Settings';
$lang['Welcome_Text'] = 'Welcome Message';
$lang['Number_of_News'] = 'Number of News';
$lang['News_length'] = 'News length';
$lang['News_Forum'] = 'News forum(s)';
$lang['Poll_Forum'] = 'Poll forum(s)';
$lang['Number_Recent_Topics'] = 'Number of recent topics';
$lang['Last_Seen'] = 'Last seen users on forum';
$lang['Comma'] = 'Separate forum ID(s) with a comma';
//
// END ezportal Admin
//
#
#-----[ OPEN ]------------------------------------------
#
phpBB2/language/lang_german/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]-----------------------------------
#
//
// mod : ezportal Admin
//
$lang['General_Portal_Config'] = ' EZPortal Konfiguration';
$lang['General_Portal_settings'] = ' EZPortal einstellungen';
$lang['Welcome_Text'] = 'Willkommensnachricht';
$lang['Number_of_News'] = 'Anzahl der News';
$lang['News_length'] = 'News l鄚ge';
$lang['News_Forum'] = 'News forum(s)';
$lang['Poll_Forum'] = 'Poll forum(s)';
$lang['Number_Recent_Topics'] = 'Anzahl der letzten Beitr輍e';
$lang['Last_Seen'] = 'Anzahl der letzten Besucher';
$lang['Comma'] = 'Separate forum ID(s) with a comma';
//
// END ezportal Admin
//
#
#-----[ OPEN ]------------------------------------------
#
phpBB2/language/lang_italian/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]-----------------------------------
#
//
// mod : ezportal Admin
//
$lang['General_Portal_Config'] = ' Configurazione EZPortal ';
$lang['General_Portal_settings'] = ' Settaggi EZPortal';
$lang['Welcome_Text'] = 'Messaggio di Benvenuto';
$lang['Number_of_News'] = 'Numero delle News';
$lang['News_length'] = 'Lunghezza News';
$lang['News_Forum'] = 'News forum(s)';
$lang['Poll_Forum'] = 'Poll forum(s)';
$lang['Number_Recent_Topics'] = 'Numero dei Topic recenti';
$lang['Last_Seen'] = 'Ultimi visitatori sul forum';
$lang['Comma'] = 'Separa gli ID dei forum con una virgola';
//
// END ezportal Admin
//
#
#-----[ SAVE/UPLOAD ]------------------------------------------
# EoM