main.php
来自「php 开发的内容管理系统」· PHP 代码 · 共 504 行 · 第 1/2 页
PHP
504 行
//post.php
define('_MD_EDITNOTALLOWED','You\'re not allowed to edit this post!');
define('_MD_EDITEDBY','Edited by');
define('_MD_ANONNOTALLOWED','Anonymous users are not allowed to post.<br />Please register.');
define('_MD_THANKSSUBMIT','Thanks for your submission!');
define('_MD_REPLYPOSTED','A reply to your topic has been posted.');
define('_MD_HELLO','Hello %s,');
define('_MD_URRECEIVING','You are receiving this email because a message you posted on %s forums has been replied to.'); // %s is your site name
define('_MD_CLICKBELOW','Click on the link below to view the thread:');
define('_MD_WAITFORAPPROVAL','Thank you. Your post will be approved before publication.');
define('_MD_POSTING_LIMITED','Why not take a break and come back in %d sec');
//forumform.inc
define('_MD_NAMEMAIL','Name/Email:');
define('_MD_LOGOUT','Logout');
define('_MD_REGISTER','Register');
define('_MD_SUBJECTC','Subject:');
define('_MD_MESSAGEICON','Message Icon:');
define('_MD_MESSAGEC','Message:');
define('_MD_ALLOWEDHTML','Allowed HTML:');
define('_MD_OPTIONS','Options:');
define('_MD_POSTANONLY','Post Anonymously');
define('_MD_DOSMILEY','Enable Smiley');
define('_MD_DOXCODE','Enable Xoops Code');
define('_MD_DOBR','Enable line break (Suggest to turn off if HTML enabled)');
define('_MD_DOHTML','Enable html tags');
define('_MD_NEWPOSTNOTIFY', 'Notify me of new posts in this thread');
define('_MD_ATTACHSIG','Attach Signature');
define('_MD_POST','Post');
define('_MD_SUBMIT','Submit');
define('_MD_CANCELPOST','Cancel Post');
define('_MD_REMOVE','Remove');
define('_MD_UPLOAD','Upload');
// forumuserpost.php
define('_MD_ADD','Add');
define('_MD_REPLY','Reply');
// topicmanager.php
define('_MD_VIEWTHETOPIC','View the topic');
define('_MD_RETURNTOTHEFORUM','Return to the forum');
define('_MD_RETURNFORUMINDEX','Return to the forum index');
define('_MD_ERROR_BACK','Error - Please go back and try again.');
define('_MD_GOTONEWFORUM','View the updated topic');
define('_MD_TOPICDELETE','The topic has been deleted.');
define('_MD_TOPICMERGE','The topic has been merged.');
define('_MD_TOPICMOVE','The topic has been moved.');
define('_MD_TOPICLOCK','The topic has been locked.');
define('_MD_TOPICUNLOCK','The topic has been unlocked.');
define('_MD_TOPICSTICKY','The topic has been Stickyed.');
define('_MD_TOPICUNSTICKY','The topic has been unStickyed.');
define('_MD_TOPICDIGEST','The topic has been Digested.');
define('_MD_TOPICUNDIGEST','The topic has been unDigested.');
define('_MD_DELETE','Delete');
define('_MD_MOVE','Move');
define('_MD_MERGE','Merge');
define('_MD_LOCK','Lock');
define('_MD_UNLOCK','unLock');
define('_MD_STICKY','Sticky');
define('_MD_UNSTICKY','unSticky');
define('_MD_DIGEST','Digest');
define('_MD_UNDIGEST','unDigest');
define('_MD_DESC_DELETE','Once you press the delete button at the bottom of this form the topic you have selected, and all its related posts, will be <strong>permanently</strong> removed.');
define('_MD_DESC_MOVE','Once you press the move button at the bottom of this form the topic you have selected, and its related posts, will be moved to the forum you have selected.');
define('_MD_DESC_MERGE','Once you press the merge button at the bottom of this form the topic you have selected, and its related posts, will be merged to the topic you have selected.<br /><strong>The destination topic ID must be smaller than current one</strong>.');
define('_MD_DESC_LOCK','Once you press the lock button at the bottom of this form the topic you have selected will be locked. You may unlock it at a later time if you like.');
define('_MD_DESC_UNLOCK','Once you press the unlock button at the bottom of this form the topic you have selected will be unlocked. You may lock it again at a later time if you like.');
define('_MD_DESC_STICKY','Once you press the Sticky button at the bottom of this form the topic you have selected will be Stickyed. You may unSticky it again at a later time if you like.');
define('_MD_DESC_UNSTICKY','Once you press the unSticky button at the bottom of this form the topic you have selected will be unStickyed. You may Sticky it again at a later time if you like.');
define('_MD_DESC_DIGEST','Once you press the Digest button at the bottom of this form the topic you have selected will be Digested. You may unDigest it again at a later time if you like.');
define('_MD_DESC_UNDIGEST','Once you press the unDigest button at the bottom of this form the topic you have selected will be unDigested. You may Digest it again at a later time if you like.');
define('_MD_MERGETOPICTO','Merge Topic To:');
define('_MD_MOVETOPICTO','Move Topic To:');
define('_MD_NOFORUMINDB','No Forums in DB');
// delete.php
define('_MD_DELNOTALLOWED','Sorry, but you\'re not allowed to delete this post.');
define('_MD_AREUSUREDEL','Are you sure you want to delete this post and all its child posts?');
define('_MD_POSTSDELETED','Selected post and all its child posts deleted.');
define('_MD_POSTDELETED','Selected post deleted.');
// definitions moved from global.
define('_MD_THREAD','Thread');
define('_MD_FROM','From');
define('_MD_JOINED','Joined');
define('_MD_ONLINE','Online');
define('_MD_OFFLINE','Offline');
define('_MD_FLAT', 'Flat');
// online.php
define('_MD_USERS_ONLINE', 'Users Online:');
define('_MD_ANONYMOUS_USERS', 'Anonymous Users');
define('_MD_REGISTERED_USERS', 'Registered Users: ');
define('_MD_BROWSING_FORUM','Users browsing forum');
define('_MD_TOTAL_ONLINE','Total %d Users Online.');
define('_MD_ADMINISTRATOR','Administrator');
define('_MD_NO_SUCH_FILE','File not exist!');
define('_MD_ERROR_UPATEATTACHMENT','Error occur when updating attachment');
// ratethread.php
define("_MD_CANTVOTEOWN", "You cannot vote on the topic you submitted.<br />All votes are logged and reviewed.");
define("_MD_VOTEONCE", "Please do not vote for the same topic more than once.");
define("_MD_VOTEAPPRE", "Your vote is appreciated.");
define("_MD_THANKYOU", "Thank you for taking the time to vote here at %s"); // %s is your site name
define("_MD_VOTES","Votes");
define("_MD_NOVOTERATE","You did not rate this Topic");
// polls.php
define("_MD_POLL_DBUPDATED","Database Updated Successfully!");
define("_MD_POLL_POLLCONF","Polls Configuration");
define("_MD_POLL_POLLSLIST", "Polls List");
define("_MD_POLL_AUTHOR", "Author of this poll");
define("_MD_POLL_DISPLAYBLOCK", "Display in block?");
define("_MD_POLL_POLLQUESTION", "Poll Question");
define("_MD_POLL_VOTERS", "Total voters");
define("_MD_POLL_VOTES", "Total votes");
define("_MD_POLL_EXPIRATION", "Expiration");
define("_MD_POLL_EXPIRED", "Expired");
define("_MD_POLL_VIEWLOG","View log");
define("_MD_POLL_CREATNEWPOLL", "Create new poll");
define("_MD_POLL_POLLDESC", "Poll description");
define("_MD_POLL_DISPLAYORDER", "Display order");
define("_MD_POLL_ALLOWMULTI", "Allow multiple selections?");
define("_MD_POLL_NOTIFY", "Notify the poll author when expired?");
define("_MD_POLL_POLLOPTIONS", "Options");
define("_MD_POLL_EDITPOLL", "Edit poll");
define("_MD_POLL_FORMAT", "Format: yyyy-mm-dd hh:mm:ss");
define("_MD_POLL_CURRENTTIME", "Current time is %s");
define("_MD_POLL_EXPIREDAT", "Expired at %s");
define("_MD_POLL_RESTART", "Restart this poll");
define("_MD_POLL_ADDMORE", "Add more options");
define("_MD_POLL_RUSUREDEL", "Are you sure you want to delete this poll and all its comments?");
define("_MD_POLL_RESTARTPOLL", "Restart poll");
define("_MD_POLL_RESET", "Reset all logs for this poll?");
define("_MD_POLL_ADDPOLL","Add Poll");
define("_MD_POLLMODULE_ERROR","xoopspoll module not available for use");
//report.php
define("_MD_REPORTED", "Thank you for reporting this post/thread! A moderator will look into your report shortly.");
define("_MD_REPORT_ERROR", "Error occured while sending the report.");
define("_MD_REPORT_TEXT", "Report message:");
define("_MD_PDF","Create PDF from Post");
define("_MD_PDF_PAGE","Page %s");
//print.php
define("_MD_COMEFROM","This Post was from:");
//viewpost.php
define("_MD_VIEWALLPOSTS","All Posts");
define("_MD_VIEWTOPIC","Topic");
define("_MD_VIEWFORUM","Forum");
define("_MD_COMPACT","Compact");
define("_MD_MENU_SELECT","Selection");
define("_MD_MENU_HOVER","Hover");
define("_MD_MENU_CLICK","Click");
define("_MD_WELCOME_SUBJECT","%s has joined the forum");
define("_MD_WELCOME_MESSAGE","Hi, %s has joined you. Let's start ...");
define("_MD_VIEWNEWPOSTS","View new posts");
define("_MD_INVALID_SUBMIT","Invalid submission. You could have exceeded session time. Please re-submit or make a backup of your post and login to resubmit if necessary.");
define("_MD_ACCOUNT","Account");
define("_MD_NAME","Name");
define("_MD_PASSWORD","Password");
define("_MD_LOGIN","Login");
define("_MD_TRANSFER","Transfer");
define("_MD_TRANSFER_DESC","Transfer the post to other applications");
define("_MD_TRANSFER_DONE","The action is done successully: %s");
define("_MD_APPROVE","Approve");
define("_MD_RESTORE","Restore");
define("_MD_SPLIT_ONE","Split");
define("_MD_SPLIT_TREE","Split all children");
define("_MD_SPLIT_ALL","Split all");
define("_MD_TYPE_ADMIN","Admin");
define("_MD_TYPE_VIEW","View");
define("_MD_TYPE_PENDING","Pending");
define("_MD_TYPE_DELETED","Deleted");
define("_MD_TYPE_SUSPEND","Suspension");
define("_MD_DBUPDATED", "Database Updated Successfully!");
define("_MD_SUSPEND_SUBJECT", "User %s is suspended for %d days");
define("_MD_SUSPEND_TEXT", "User %s is suspended for %d days due to:<br />[quote]%s[/quote]<br /><br />The suspension is valid till %s");
define("_MD_SUSPEND_UID", "User ID");
define("_MD_SUSPEND_IP", "IP segments (full or segments)");
define("_MD_SUSPEND_DURATION", "Suspension duration (Days)");
define("_MD_SUSPEND_DESC", "Suspension reason");
define("_MD_SUSPEND_LIST", "Suspension list");
define("_MD_SUSPEND_START", "Start");
define("_MD_SUSPEND_EXPIRE", "End");
define("_MD_SUSPEND_SCOPE", "Scope");
define("_MD_SUSPEND_MANAGEMENT", "Moderation management");
define("_MD_SUSPEND_NOACCESS", "Your ID or IP has been suspended");
// !!IMPORTANT!! insert '\' before any char among reserved chars: "a", "A","B","c","d","D","F","g","G","h","H","i","I","j","l","L","m","M","n","O","r","s","S","t","T","U","w","W","Y","y","z","Z"
// insert double '\' before 't', 'r', 'n'
define("_MD_TODAY", "\T\o\d\a\y G:i:s");
define("_MD_YESTERDAY", "\Y\e\s\\t\e\\r\d\a\y G:i:s");
define("_MD_MONTHDAY", "n/j G:i:s");
define("_MD_YEARMONTHDAY", "Y/n/j G:i");
// For user info
// If you have customized userbar, define here.
require_once(XOOPS_ROOT_PATH."/modules/newbb/class/user.php");
class User_language extends User
{
function User_language(&$user)
{
$this->User($user);
}
function &getUserbar()
{
global $xoopsModuleConfig, $xoopsUser, $isadmin;
if (empty($xoopsModuleConfig['userbar_enabled'])) return null;
$user =& $this->user;
$userbar = array();
$userbar[] = array("link"=>XOOPS_URL . "/userinfo.php?uid=" . $user->getVar("uid"), "name" =>_PROFILE);
if (is_object($xoopsUser))
$userbar[]= array("link"=>"javascript:void openWithSelfMain('" . XOOPS_URL . "/pmlite.php?send2=1&to_userid=" . $user->getVar("uid") . "', 'pmlite', 450, 380);", "name"=>_MD_PM);
if($user->getVar('user_viewemail') || $isadmin)
$userbar[]= array("link"=>"javascript:void window.open('mailto:" . $user->getVar('email') . "', 'new');", "name"=>_MD_EMAIL);
if($user->getVar('url'))
$userbar[]= array("link"=>"javascript:void window.open('" . $user->getVar('url') . "', 'new');", "name"=>_MD_WWW);
if($user->getVar('user_icq'))
$userbar[]= array("link"=>"javascript:void window.open('http://wwp.icq.com/scripts/search.dll?to=" . $user->getVar('user_icq')."', 'new');", "name" => _MD_ICQ);
if($user->getVar('user_aim'))
$userbar[]= array("link"=>"javascript:void window.open('aim:goim?screenname=" . $user->getVar('user_aim') . "&message=Hi+" . $user->getVar('user_aim') . "+Are+you+there?" . "', 'new');", "name"=>_MD_AIM);
if($user->getVar('user_yim'))
$userbar[]= array("link"=>"javascript:void window.open('http://edit.yahoo.com/config/send_webmesg?.target=" . $user->getVar('user_yim') . "&.src=pg" . "', 'new');", "name"=> _MD_YIM);
if($user->getVar('user_msnm'))
$userbar[]= array("link"=>"javascript:void window.open('http://members.msn.com?mem=" . $user->getVar('user_msnm') . "', 'new');", "name" => _MD_MSNM);
return $userbar;
}
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?