mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 04:12:00 +02:00
More language-file cleanup
This commit is contained in:
@@ -41,18 +41,6 @@ if (isset($_POST['updatesettings']))
|
||||
e107::getConfig('core')->setPref($temp)->save(false);
|
||||
e107::getCache()->clear("nq_chatbox");
|
||||
|
||||
/*
|
||||
if ($admin_log->logArrayXXXXXDiffs($temp, $pref, 'CHBLAN_01'))
|
||||
{
|
||||
save_prefs(); // Only save if changes
|
||||
$e107cache->clear("nq_chatbox");
|
||||
}
|
||||
else
|
||||
{
|
||||
$mes->addInfo(LAN_NO_CHANGE);
|
||||
}
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +52,7 @@ if (isset($_POST['prune']))
|
||||
$sql->db_Delete("chatbox", "cb_datestamp < '{$prunetime}' ");
|
||||
e107::getLog()->add('CHBLAN_02', $chatbox_prune.', '.$prunetime, E_LOG_INFORMATIVE, '');
|
||||
$e107cache->clear("nq_chatbox");
|
||||
$mes->addSuccess(CHBLAN_28);
|
||||
$mes->addSuccess(LAN_AL_CHBLAN_02);
|
||||
}
|
||||
|
||||
if (isset($_POST['recalculate']))
|
||||
|
@@ -25,7 +25,7 @@ $row = $sql->fetch();
|
||||
if (!check_class($row['menu_class']))
|
||||
{
|
||||
$mes->addError(CHATBOX_L24);
|
||||
$ns->tablerender(CHATBOX_L23, $mes->render());
|
||||
$ns->tablerender(LAN_ERROR, $mes->render());
|
||||
require_once(FOOTERF);
|
||||
exit;
|
||||
}
|
||||
@@ -120,7 +120,7 @@ foreach ($chatList as $row)
|
||||
}
|
||||
if(CB_MOD)
|
||||
{
|
||||
$cb_message .= "<br /><input type='checkbox' name='delete[{$row['cb_id']}]' value='1' />".CHATBOX_L10;
|
||||
$cb_message .= "<br /><input type='checkbox' name='delete[{$row['cb_id']}]' value='1' />".LAN_DELETE;
|
||||
if($row['cb_blocked'])
|
||||
{
|
||||
$cb_message .= " <input type='checkbox' name='unblock[{$row['cb_id']}]' value='1' />".CHATBOX_L7;
|
||||
@@ -164,8 +164,6 @@ $text .= "<div class='nextprev'>".$tp->parseTemplate("{NEXTPREV={$parms}}").'</d
|
||||
$ns->tablerender(CHATBOX_L20, $mes->render().$text);
|
||||
|
||||
|
||||
//require_once(e_HANDLER."np_class.php");
|
||||
//$ix = new nextprev("chat.php", $from, 30, $chat_total, CHATBOX_L21);
|
||||
|
||||
require_once(FOOTERF);
|
||||
?>
|
||||
|
@@ -346,7 +346,7 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
|
||||
|
||||
|
||||
|
||||
$caption = (file_exists(THEME."images/chatbox_menu.png") ? "<img src='".THEME_ABS."images/chatbox_menu.png' alt='' /> ".CHATBOX_L2 : CHATBOX_L2);
|
||||
$caption = (file_exists(THEME."images/chatbox_menu.png") ? "<img src='".THEME_ABS."images/chatbox_menu.png' alt='' /> ".LAN_PLUGIN_CHATBOX_MENU_NAME : CHATBOX_L2);
|
||||
|
||||
if($pref['cb_layer'] == 1)
|
||||
{
|
||||
|
@@ -35,10 +35,10 @@ class chatbox_menu_dashboard // include plugin-folder in the name.
|
||||
$chatbox_posts = $sql->count('chatbox');
|
||||
|
||||
$var[0]['icon'] = "<img src='".e_PLUGIN_ABS."chatbox_menu/images/chatbox_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> ";
|
||||
$var[0]['title'] = ADLAN_115;
|
||||
$var[0]['title'] = LAN_PLUGIN_CHATBOX_MENU_POSTS;
|
||||
$var[0]['url'] = e_PLUGIN."chatbox_menu/admin_chatbox.php";
|
||||
$var[0]['total'] = $chatbox_posts;
|
||||
echo "BLA";
|
||||
|
||||
return $var;
|
||||
}
|
||||
}
|
||||
|
@@ -13,14 +13,14 @@ if (!defined('e107_INIT')) { exit; }
|
||||
if(defined('ADMIN_PAGE') && ADMIN_PAGE === true)
|
||||
{
|
||||
// $config_category = NT_LAN_CB_1;
|
||||
// $config_events = array('cboxpost' => NT_LAN_CB_2);
|
||||
// $config_events = array('cboxpost' => NT_LXAN_CB_2);
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('notify_cboxpost')) {
|
||||
function notify_cboxpost($data) {
|
||||
global $nt;
|
||||
$message = NT_LAN_CB_3.': '.USERNAME.' ('.NT_LAN_CB_4.': '.e107::getIPHandler()->ipDecode($data['ip']).' )<br />';
|
||||
$message = NT_LAN_CB_3.': '.USERNAME.' ('.NT_LXAN_CB_4.': '.e107::getIPHandler()->ipDecode($data['ip']).' )<br />';
|
||||
$message .= NT_LAN_CB_5.':<br />'.$data['cmessage'].'<br /><br />';
|
||||
$nt -> send('cboxpost', NT_LAN_CB_6, $message);
|
||||
}
|
||||
@@ -48,7 +48,7 @@ class chatbox_menu_notify extends notify // plugin-folder + '_notify'
|
||||
function cboxpost($data)
|
||||
{
|
||||
|
||||
$message = NT_LAN_CB_3.': '.USERNAME.' ('.NT_LAN_CB_4.': '.e107::getIPHandler()->ipDecode($data['ip']).' )<br />';
|
||||
$message = NT_LAN_CB_3.': '.USERNAME.' ('.LAN_IP.': '.e107::getIPHandler()->ipDecode($data['ip']).' )<br />';
|
||||
$message .= NT_LAN_CB_5.':<br />'.$data['cmessage'].'<br /><br />';
|
||||
|
||||
$this->send('cboxpost', NT_LAN_CB_6, $message);
|
||||
|
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
define("CHATBOX_L1", "Unable to accept post as that username is registered - if it is your username please login to post.");
|
||||
define("CHATBOX_L2", "Chatbox");
|
||||
// define("CHATBOX_L2", "Chatbox");
|
||||
define("CHATBOX_L3", "You must be logged in to post comments on this site - please either log in or if you are not registered click <a href='".e_SIGNUP."'>here</a> to signup");
|
||||
define("CHATBOX_L4", "Post new message");
|
||||
define("CHATBOX_L5", "Reset");
|
||||
@@ -23,21 +23,21 @@ define("CHATBOX_L6", "[blocked by admin]");
|
||||
define("CHATBOX_L7", "Unblock");
|
||||
define("CHATBOX_L8", "Info");
|
||||
define("CHATBOX_L9", "Block");
|
||||
define("CHATBOX_L10", "Delete");
|
||||
// define("CHATBOX_L10", "Delete");
|
||||
define("CHATBOX_L11", "No messages yet.");
|
||||
define("CHATBOX_L12", "View all posts");
|
||||
define("CHATBOX_L13", "moderate chatbox");
|
||||
define("CHATBOX_L14", "Emotes");
|
||||
define("CHATBOX_L15", "Post too long, or empty post submitted");
|
||||
define("CHATBOX_L16", "Anonymous");
|
||||
// define("CHATBOX_L16", "Anonymous");
|
||||
define("CHATBOX_L17", "Duplicate post");
|
||||
define("CHATBOX_L18", "Chatbox messages moderated");
|
||||
define("CHATBOX_L19", "You may only post once every ".(FLOODPROTECT ? FLOODTIMEOUT : 'n/a')." seconds");
|
||||
|
||||
define("CHATBOX_L20", "Chatbox (all posts)");
|
||||
define("CHATBOX_L21", "Chat Posts");
|
||||
// define("CHATBOX_L21", "Chat Posts");
|
||||
define("CHATBOX_L22", "on");
|
||||
define("CHATBOX_L23", "Error!");
|
||||
// define("CHATBOX_L23", "Error!");
|
||||
define("CHATBOX_L24", "You do not have the correct permissions to view this page.");
|
||||
define("CHATBOX_L25", "[ this post has been blocked by admin ]");
|
||||
|
||||
|
@@ -17,7 +17,7 @@ define("LAN_AL_CHBLAN_05","");
|
||||
define("NT_LAN_CB_1", "Chatbox Events");
|
||||
define("NT_LAN_CB_2", "Message posted");
|
||||
define("NT_LAN_CB_3", "Posted by");
|
||||
define("NT_LAN_CB_4", "IP Address");
|
||||
// define("NT_LAN_CB_4", "IP Address");
|
||||
define("NT_LAN_CB_5", "Message");
|
||||
define("NT_LAN_CB_6", "Chatbox Message Posted");
|
||||
|
||||
|
@@ -36,7 +36,7 @@ define("CHBLAN_24", "One day");
|
||||
define("CHBLAN_25", "One week");
|
||||
define("CHBLAN_26", "One month");
|
||||
define("CHBLAN_27", "- Delete all posts -");
|
||||
define("CHBLAN_28", "Chatbox pruned.");
|
||||
// define("CHBLAN_28", "Chatbox pruned.");
|
||||
|
||||
define("CHBLAN_29", "Display chatbox inside scrolling layer with height [x]"); // [x] will be replaced automatically
|
||||
define("CHBLAN_30", "Layer height");
|
||||
|
Reference in New Issue
Block a user