📄 config.php
字号:
'smi_China' => ':cn:',
'smi_Spain' => ':es:',
'smi_European_Union' => ':eu:',
'smi_France' => ':fr:',
'smi_Germany' => ':de:',
'smi_IndianFlag' => ':in:',
'smi_Italy' => ':it:',
'smi_Japan' => ':jp:',
'smi_MexicoFlag' => ':mx:',
'smi_PolandFlag' => ':pl:',
'smi_PortugalFlag' => ':pt:',
'smi_Russia' => ':ru:',
'smi_Sweeden' => ':se:',
'smi_UkraineFlag' => ':ua:',
'smi_UK' => ':uk:',
'smi_US_Map' => ':us:',
),
//Avatar settings
'avatars' => array(
'mod_only' => 'smi_admin,smi_moderator',
// for standard users (& customers, if using support mode)
'user' => array(
'male' => array(
'mainchat' => array(
'default_value' => 'smi_male', // a smilie code
'default_state' => false, // true = checked/on by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_male', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
),
'female' => array(
'mainchat' => array(
'default_value' => 'smi_female', // a smilie code
'default_state' => false, // true = checked/on by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_female', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
),
),
// for moderators and administrators
'admin' => array(
'male' => array(
'mainchat' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => false, // true = checked/on by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
),
'female' => array(
'mainchat' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => false, // true = checked/on by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => true, // if false, cannot be changed (combo box is disabled)
),
),
),
),
//Message processing
'msgRequestInterval' => 3, //chat refresh time, seconds
'msgRequestIntervalAway' => 15, //chat refresh time in away state, seconds
//NOTE: it should not be bigger than a half of autologoutAfter
//otherwise your users risk being disconnected in away mode
'msgRemoveAfter' => 3600, //messages removed after this time, seconds
//Connection processing
'autologoutAfter' => 60, //time of pooling inactivity after which user is considered logged off, seconds
'autocloseAfter' => 3600,//time of pooling inactivity after which connection is removed from database, seconds
'helpUrl' => 'http://tufat.com/docs/flashchat/index.html', //you can use also help.php
//Ban processing
'autounbanAfter' => 36000, //time after user is un-banned, seconds
//Language options
'languages' => array(), //do not change this
'defaultLanguage' => 'en', //two-letter code of the default language (see below)
'allowLanguage' => true, //allow user to choose another language
'base' => '',
//Chat server options
'ChatOwner' => array(
1, // replace with your own values for user names
//2, // look in users table for these values
//3, // add extra lines if required, delete if you need less than 3 users in table
),
'commands' => array(
'showIP' => true, // show user IP and host at /who if set to true
'userPM' => true, // set to true to output list of user commands to a PM window, false to chat window
'adminPM' => true, // set to true to output list of moderator commands to a PM window, false to chat window
'maxRooms' => 8, // max number of Public Rooms
),
//external sound options
'sound_options' => array(
'RingBell' => 'sounds/tin_can.mp3',
'LeaveRoom' => 'sounds/door_shut.mp3',
'OtherUserEnters' => 'sounds/jetsons.mp3',
'ReceiveMessage' => 'sounds/aol_receive_message.mp3',
'SubmitMessage' => 'sounds/aol_send_message.mp3',
'RoomOpenClose' => 'sounds/_default.mp3',
'InitialLogin' => 'sounds/harp_cord.mp3',
'Logout' => 'sounds/high_low_chord.mp3',
'ComboListOpenClose' => 'sounds/mouse_over_6.mp3',
'UserBannedBooted' => 'sounds/chime.mp3',
'InvitationReceived' => 'sounds/three_notes.mp3',
'PrivateMessageReceived' => 'sounds/aol_receive_message.mp3',
'UserMenuMouseOver' => 'sounds/mouse_over_1.mp3',
'PopupWindowOpen' => 'sounds/air_swoosh_2.mp3',
'PopupWindowCloseMin' => 'sounds/mouse_over_2.mp3',
'EnterRoom' => 'sounds/ta_da.mp3',
'PressButton' => 'sounds/activate_button.mp3'
),
//---
//File sharing options
// to disable file sharing, go to /inc/layouts/user.php and set allowFileShare to 'false'
'filesharing' => array(
'allowShareRoom' => false,//moderators can always share with all users in a room - this option is only for non-moderators
'allowShareChat' => false,//moderators can always share with all users in a chat - this option is only for non-moderators
'allowFileExt' => 'zip,rar,jpg,gif,sit,pdf',// allowed file extensions, comma separated (to allow all extensions set to '')
'maxFileSize' => 0.5*1024*1024,//max file size in bytes (2*1024*1024 equals 2 Mb)
'maxFileHoursLife' => 0.5, // time in hours to store the file on the server (file will be deleted after this time)
),
'avatarbgloading' => array(
'allowFileExt' => 'jpg,swf',// allowed file extensions, comma separated (to allow all extensions set to '')
'maxFileSize' => 0.5*1024*1024,//max file size in bytes (2*1024*1024 equals 2 Mb)
'maxFileHoursLife' => 24*31, // time in hours to store the file on the server (file will be deleted after this time)
),
//---
//Logout behavior
'logout' => array(
'close' => false, // if true, then FlashChat window is closed upon logout
'redirect' => false, // redirectURL must be a valid URL
'url' => 'http://www.tufat.com/chat.php', // 'redirect' must be set to true for this to work
'window' => '_blank', // the window to open into. possible values: _blank, _self, _parent, or a named window
),
//---
//module settings (anchored SWF/JPG file)
//banner.swf is a simple Flash banner ad, moduleText.swf is an advanced module with bi-directional communication between FlashChat and the module
'module' => array(
'anchor' => 0,//the anchor point: -1,0,1,2,3 or 4 (0=centered,1-4=corners of space below roomlist) + 5-12 points
//anchor of -1 means that module will occupy a floating window (not anchored with flashchat template)
'path' => '',//set to '' to disable. To see how this works, use './modules/banner.swf' or './modules/moduleTest.swf'
'stretch' => false,// if true, anchored SWF is stretched horizontally & vertically to fill all available space
'float_x' => 300, // the default "x" position of the floating window (when anchor = -1)
'float_y' => 200, // the default "y" position of the floating window (when anchor = -1)
'float_w' => 100, // the default width of the floating window (when anchor = -1)
'float_h' => 100, // the default height of the floating window (when anchor = -1)
),
);
if(!$GLOBALS['fc_config_stop'])
{
include_once(INC_DIR . 'layouts/admin.php');
include_once(INC_DIR . 'layouts/spy.php');
include_once(INC_DIR . 'layouts/user.php');
include_once(INC_DIR . 'layouts/customer.php');
include_once(INC_DIR . 'flashChatTag.php');
//SKINS: To disable a skin, comment or delete the appropriate line
include_once(INC_DIR . 'skins/default_skin.php');
include_once(INC_DIR . 'skins/xp_skin.php');
include_once(INC_DIR . 'skins/aqua_skin.php');
include_once(INC_DIR . 'skins/gradient_skin.php');
//THEMES: To disable a color theme, comment or delete the appropriate line
include_once(INC_DIR . 'themes/xp.php');
include_once(INC_DIR . 'themes/macintosh.php');
include_once(INC_DIR . 'themes/gradient.php');
include_once(INC_DIR . 'themes/navy.php');
include_once(INC_DIR . 'themes/metallic.php');
include_once(INC_DIR . 'themes/tropical.php');
include_once(INC_DIR . 'themes/aqua.php');
include_once(INC_DIR . 'themes/olive.php');
include_once(INC_DIR . 'themes/pink.php');
include_once(INC_DIR . 'themes/oak.php');
include_once(INC_DIR . 'themes/black.php');
//LANGUAGES: To disable a language, comment or delete the appropriate line
include_once(INC_DIR . 'langs/en.php'); //English
include_once(INC_DIR . 'langs/gm.php'); //German
include_once(INC_DIR . 'langs/si.php'); //Spanish - Informal
include_once(INC_DIR . 'langs/sf.php'); //Spanish - Formal
include_once(INC_DIR . 'langs/du.php'); //Dutch
include_once(INC_DIR . 'langs/it.php'); //Italian
//include_once(INC_DIR . 'langs/sv.php'); //Sweedish
include_once(INC_DIR . 'langs/gr.php'); //Greek
include_once(INC_DIR . 'langs/ru.php'); //Russian
include_once(INC_DIR . 'langs/ua.php'); //Ukrainian
include_once(INC_DIR . 'langs/he.php'); //Hebrew
include_once(INC_DIR . 'langs/ar.php'); //Arabic
include_once(INC_DIR . 'langs/tr.php'); //Turkish
include_once(INC_DIR . 'langs/ro.php'); //Romanian
include_once(INC_DIR . 'langs/pt.php'); //Portugal Portuguese
include_once(INC_DIR . 'langs/br.php'); //Brazilian Portuguese
include_once(INC_DIR . 'langs/fr.php'); //French
include_once(INC_DIR . 'langs/lt.php'); //Lithuanian
include_once(INC_DIR . 'langs/pl.php'); //Polish
include_once(INC_DIR . 'langs/no.php'); //Norweigan
include_once(INC_DIR . 'langs/da.php'); //Danish
include_once(INC_DIR . 'langs/hu.php'); //Hungarian
include_once(INC_DIR . 'langs/fi.php'); //Finnish
include_once(INC_DIR . 'langs/sk.php'); //Slovak
include_once(INC_DIR . 'langs/cz.php'); //Czech
include_once(INC_DIR . 'langs/th.php'); //Thai
include_once(INC_DIR . 'langs/jp.php'); //Japanese
include_once(INC_DIR . 'langs/tw.php'); //Chinese (BIG-5)
include_once(INC_DIR . 'langs/cn.php'); //Chinese (GB)
include_once(INC_DIR . 'langs/hi.php'); //Hindi
include_once(INC_DIR . 'langs/kl.php'); //Klingon (fictional language)
include_once(INC_DIR . 'langs/pg.php'); //Pig Latin (fictional language)
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -