1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

'quick add user': Option to send email to user, better vetting on parameters. Admin log all changes

This commit is contained in:
e107steved
2008-01-01 12:38:05 +00:00
parent 5b8fdb9ca1
commit 6ab55eec3d
3 changed files with 475 additions and 282 deletions

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/users.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/users.php,v $
| $Revision: 1.9 $ | $Revision: 1.10 $
| $Date: 2007-12-26 13:21:34 $ | $Date: 2008-01-01 12:37:58 $
| $Author: e107steved $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -55,16 +55,17 @@ require_once(e_HANDLER."userclass_class.php");
$rs = new form; $rs = new form;
if (e_QUERY) { if (e_QUERY)
$tmp = explode(".", e_QUERY); {
$action = $tmp[0]; $tmp = explode(".", e_QUERY);
$sub_action = $tmp[1]; $action = $tmp[0];
$id = $tmp[2]; $sub_action = varset($tmp[1],'');
$from = ($tmp[3] ? $tmp[3] : 0); $id = varset($tmp[2],0);
unset($tmp); $from = varset($tmp[3],0);
unset($tmp);
} }
$from = (isset($from)) ? $from : 0; $from = varset($from, 0);
$amount = 30; $amount = 30;
@@ -148,6 +149,7 @@ if (isset($_POST['update_options']))
$pref['force_userupdate'] = $_POST['force_userupdate']; $pref['force_userupdate'] = $_POST['force_userupdate'];
$pref['memberlist_access'] = $_POST['memberlist_access']; $pref['memberlist_access'] = $_POST['memberlist_access'];
save_prefs(); save_prefs();
$admin_log->log_event('LAN_ADMIN_LOG_005',implode('; ',$_POST),E_LOG_INFORMATIVE,'USET_03');
$user->show_message(USRLAN_1); $user->show_message(USRLAN_1);
} }
@@ -155,80 +157,149 @@ if (isset($_POST['update_options']))
// ------- Prune Users. -------------- // ------- Prune Users. --------------
if (isset($_POST['prune'])) if (isset($_POST['prune']))
{ {
$e107cache->clear("online_menu_member_total"); $e107cache->clear("online_menu_member_total");
$e107cache->clear("online_menu_member_newest"); $e107cache->clear("online_menu_member_newest");
$text = USRLAN_56." "; $text = USRLAN_56." ";
$bantype = $_POST['prune_type']; $bantype = $_POST['prune_type'];
if ($sql->db_Select("user", "user_id, user_name", "user_ban= {$bantype}")) if ($sql->db_Select("user", "user_id, user_name", "user_ban= {$bantype}"))
{
$uList = $sql->db_getList();
foreach($uList as $u)
{ {
$uList = $sql->db_getList(); $text .= $u['user_name']." ";
foreach($uList as $u) $sql->db_Delete("user", "user_id='{$u['user_id']}' ");
{ $sql->db_Delete("user_extended", "user_extended_id='{$u['user_id']}' ");
$text .= $u['user_name']." ";
$sql->db_Delete("user", "user_id='{$u['user_id']}' ");
$sql->db_Delete("user_extended", "user_extended_id='{$u['user_id']}' ");
}
} }
$ns->tablerender(USRLAN_57, "<div style='text-align:center'><b>".$text."</b></div>"); $admin_log->log_event('LAN_ADMIN_LOG_006',str_replace(array('--COUNT--','--TYPE--'),array(count($uList),$bantype),USRLAN_160),E_LOG_INFORMATIVE,'USET_04');
unset($text); }
$ns->tablerender(USRLAN_57, "<div style='text-align:center'><b>".$text."</b></div>");
unset($text);
} }
// ------- Quick Add User -------------- // ------- Quick Add User --------------
if (isset($_POST['adduser'])) { if (isset($_POST['adduser']))
{
$e107cache->clear("online_menu_member_total"); $e107cache->clear("online_menu_member_total");
$e107cache->clear("online_menu_member_newest"); $e107cache->clear("online_menu_member_newest");
if (!$_POST['ac'] == md5(ADMINPWCHANGE)) { if (!$_POST['ac'] == md5(ADMINPWCHANGE))
exit; {
exit;
} }
$user_data = array(); // Assemble the data into an array
require_once(e_HANDLER."message_handler.php"); require_once(e_HANDLER."message_handler.php");
if (strstr($_POST['name'], "#") || strstr($_POST['name'], "=")) { $displayname = strip_tags($_POST['name']);
message_handler("P_ALERT", USRLAN_92); if (($displayname != strip_tags($_POST['name'])) || (strstr($_POST['name'], "#") || strstr($_POST['name'], "=")))
$error = TRUE; {
message_handler("P_ALERT", USRLAN_92);
$error = TRUE;
} }
$_POST['name'] = trim(str_replace("&nbsp;", "", $_POST['name'])); $displayname = trim(str_replace("&nbsp;", "", $displayname));
if ($_POST['name'] == "Anonymous") { if ($displayname == "Anonymous")
message_handler("P_ALERT", USRLAN_65); {
$error = TRUE; message_handler("P_ALERT", USRLAN_65);
$error = TRUE;
} }
if ($sql->db_Count("user", "(*)", "WHERE user_name='".$_POST['name']."' ")) { if ((strlen($displayname) > varset($pref['displayname_maxlength'],15)) || (strlen($displayname) < 2))
message_handler("P_ALERT", USRLAN_66); {
$error = TRUE; message_handler('P_ALERT',USRLAN_154);
$error = TRUE;
} }
if ($_POST['password1'] != $_POST['password2']) { if ($sql->db_Count("user", "(*)", "WHERE user_name='".$displayname."' "))
message_handler("P_ALERT", USRLAN_67); {
$error = TRUE; message_handler("P_ALERT", USRLAN_66);
$error = TRUE;
} }
if ($_POST['name'] == "" || $_POST['password1'] == "" || $_POST['password2'] = "") {
message_handler("P_ALERT", USRLAN_68); $loginname = trim(preg_replace('/&nbsp;|\#|\=|\$/', "", strip_tags($_POST['loginname'])));
$error = TRUE; if ($loginname != $_POST['loginname'])
{
message_handler('P_ALERT',USRLAN_152);
$error = TRUE;
} }
if (!preg_match('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_`{|}~]+@([-0-9A-Z]+\.)+([0-9A-Z]){2,4}$/i', $_POST['email'])) { if ((strlen($loginname) > varset($pref['loginname_maxlength'],30)) || (strlen($loginname) < 3))
message_handler("P_ALERT", USRLAN_69); {
$error = TRUE; message_handler('P_ALERT',USRLAN_154);
$error = TRUE;
} }
if ($sql->db_Count("user", "(*)", "WHERE user_email='".$_POST['email']."' AND user_ban='1' ")) { if ($sql->db_Count("user", "(*)", "WHERE user_loginname='".$loginname."' "))
message_handler("P_ALERT", USRLAN_147); {
$error = TRUE; message_handler("P_ALERT", USRLAN_153);
$error = TRUE;
}
if ($_POST['password1'] != $_POST['password2'])
{
message_handler("P_ALERT", USRLAN_67);
$error = TRUE;
}
if ($_POST['name'] == "" || $_POST['password1'] == "" || $_POST['password2'] = "")
{
message_handler("P_ALERT", USRLAN_68);
$error = TRUE;
}
if (!check_email($_POST['email']))
{
message_handler("P_ALERT", USRLAN_69);
$error = TRUE;
}
if ($sql->db_Count("user", "(*)", "WHERE user_email='".$_POST['email']."' AND user_ban='1' "))
{
message_handler("P_ALERT", USRLAN_147);
$error = TRUE;
}
if ($sql->db_Count("banlist", "(*)", "WHERE banlist_ip='".$_POST['email']."'"))
{
message_handler("P_ALERT", USRLAN_148);
$error = TRUE;
}
if (!$error)
{
$user_data['user_name'] = $displayname;
$user_data['user_loginname'] = $loginname;
$user_data['user_class'] = implode(",", $_POST['userclass']);
$user_data['user_password'] = md5($_POST['password1']);
$user_data['user_email'] = $tp->toDB($_POST['email']);
$user_data['user_hideemail'] = 1;
$user_data['user_join'] = time();
$user_data['user_lastvisit'] = time();
$user_data['user_currentvisit'] = time();
$user_data['user_pwchange'] = time();
$user_data['user_login'] = $tp->toDB($_POST['realname']);
if (admin_update($sql -> db_Insert("user", $user_data), 'insert', USRLAN_70))
{
// Add to admin log
$admin_log->log_event('LAN_ADMIN_LOG_004',"UName: {$user_data['user_name']}; Email: {$user_data['user_email']}",E_LOG_INFORMATIVE,'USET_02');
// Add to user audit trail
$admin_log->user_audit(USER_AUDIT_ADD_ADMIN,$user_data, 0,$user_data['user_loginname']);
if (isset($_POST['sendconfemail']))
{ // Send confirmation email to user
require_once(e_HANDLER.'mail.php');
$e_message = str_replace(array('--SITE--','--LOGIN--','--PASSWORD--'),array(SITEURL,$loginname,$_POST['password1']),USRLAN_155).USRLAN_156;
if (sendemail($user_data['user_email'],USRLAN_157.SITEURL,$e_message,$user_data['user_login'],'',''))
{
$message = USRLAN_158;
}
else
{
$message = USRLAN_159;
}
} }
if ($sql->db_Count("banlist", "(*)", "WHERE banlist_ip='".$_POST['email']."'")) { }
message_handler("P_ALERT", USRLAN_148);
$error = TRUE;
}
if (!$error) {
$username = strip_tags($_POST['name']);
$loginname = strip_tags($_POST['loginname']);
$svar = implode(",", $_POST['userclass']);
admin_update($sql -> db_Insert("user", "0, '$username', '$loginname', '', '".md5($_POST['password1'])."', '$key', '".$_POST['email']."', '".$_POST['signature']."', '".$_POST['image']."', '".$_POST['timezone']."', '1', '".time()."', '".time()."', '".time()."', '0', '0', '0', '0', '0', '0', '0', '', '', '0', '0', '".$_POST['realname']."', '".$svar."', '', '', '".time()."', ''"), 'insert', USRLAN_70);
} }
if (isset($message)) $user->show_message($message);
} }
// ------- Bounce --> Unverified -------------- // ------- Bounce --> Unverified --------------
if (isset($_POST['useraction']) && $_POST['useraction'] == "reqverify") if (isset($_POST['useraction']) && $_POST['useraction'] == "reqverify")
{ {
@@ -255,10 +326,11 @@ if (isset($_POST['useraction']) && $_POST['useraction'] == "ban")
} }
else else
{ {
if($sql->db_Update("user", "user_ban='1' WHERE user_id='".$_POST['userid']."' ")) if($sql->db_Update("user", "user_ban='1' WHERE user_id='".$_POST['userid']."' "))
{ {
$user->show_message(USRLAN_8); $admin_log->log_event('LAN_ADMIN_LOG_007',str_replace(array('--UID--','--NAME--'),array($row['user_id'],$row['user_name']),USRLAN_161),E_LOG_INFORMATIVE,'USET_05');
} $user->show_message(USRLAN_8);
}
if(trim($row['user_ip']) == "") if(trim($row['user_ip']) == "")
{ {
$user->show_message(USRLAN_135); $user->show_message(USRLAN_135);
@@ -288,18 +360,21 @@ if (isset($_POST['useraction']) && $_POST['useraction'] == "ban")
// ------- Unban User -------------- // ------- Unban User --------------
if (isset($_POST['useraction']) && $_POST['useraction'] == "unban") { if (isset($_POST['useraction']) && $_POST['useraction'] == "unban")
$sql->db_Select("user", "user_ip", "user_id='".$_POST['userid']."'"); {
$sql->db_Select("user", "user_name,user_ip", "user_id='".$_POST['userid']."'");
$row = $sql->db_Fetch(); $row = $sql->db_Fetch();
$sql->db_Update("user", "user_ban='0' WHERE user_id='".$_POST['userid']."' "); $sql->db_Update("user", "user_ban='0' WHERE user_id='".$_POST['userid']."' ");
$sql -> db_Delete("banlist", " banlist_ip='{$row['user_ip']}' "); $sql -> db_Delete("banlist", " banlist_ip='{$row['user_ip']}' ");
$admin_log->log_event('LAN_ADMIN_LOG_008',str_replace(array('--UID--','--NAME--'),array($_POST['userid'],$row['user_name']),USRLAN_162),E_LOG_INFORMATIVE,'USET_06');
$user->show_message(USRLAN_9); $user->show_message(USRLAN_9);
$action = "main"; $action = "main";
if(!$sub_action){$sub_action = "user_id"; } if(!$sub_action){$sub_action = "user_id"; }
} }
// ------- Resend Email Confirmation. -------------- // ------- Resend Email Confirmation. --------------
if (isset($_POST['useraction']) && $_POST['useraction'] == 'resend') { if (isset($_POST['useraction']) && $_POST['useraction'] == 'resend')
{
$qry = (e_QUERY) ? "?".e_QUERY : ""; $qry = (e_QUERY) ? "?".e_QUERY : "";
if ($sql->db_Select("user", "*", "user_id='".$_POST['userid']."' ")) { if ($sql->db_Select("user", "*", "user_id='".$_POST['userid']."' ")) {
$resend = $sql->db_Fetch(); $resend = $sql->db_Fetch();
@@ -317,8 +392,13 @@ if (isset($_POST['useraction']) && $_POST['useraction'] == 'resend') {
exit; exit;
} }
} }
// ------- TEst Email confirmation. -------------- // ------- TEst Email confirmation. --------------
if (isset($_POST['useraction']) && $_POST['useraction'] == 'test') { if (isset($_POST['useraction']) && $_POST['useraction'] == 'test')
{
$qry = (e_QUERY) ? "?".e_QUERY : ""; $qry = (e_QUERY) ? "?".e_QUERY : "";
if ($sql->db_Select("user", "*", "user_id='".$_POST['userid']."' ")) { if ($sql->db_Select("user", "*", "user_id='".$_POST['userid']."' ")) {
$test = $sql->db_Fetch(); $test = $sql->db_Fetch();
@@ -333,17 +413,26 @@ if (isset($_POST['useraction']) && $_POST['useraction'] == 'test') {
exit; exit;
} }
} }
// ------- Delete User --------------
if (isset($_POST['useraction']) && $_POST['useraction'] == 'deluser') {
if ($_POST['confirm']) {
if ($sql->db_Delete("user", "user_id='".$_POST['userid']."' AND user_perms != '0' AND user_perms != '0.'")) {
$sql->db_Delete("user_extended", "user_extended_id='".$_POST['userid']."' ");
$user->show_message(USRLAN_10);
}
if(!$sub_action){ $sub_action = "user_id"; }
if(!$id){ $id = "DESC"; }
} else {
// ------- Delete User --------------
if (isset($_POST['useraction']) && $_POST['useraction'] == 'deluser')
{
if ($_POST['confirm'])
{
if ($sql->db_Delete("user", "user_id='".$_POST['userid']."' AND user_perms != '0' AND user_perms != '0.'"))
{
$sql->db_Delete("user_extended", "user_extended_id='".$_POST['userid']."' ");
$admin_log->log_event('LAN_ADMIN_LOG_009',str_replace('--UID--',$_POST['userid'],USRLAN_163),E_LOG_INFORMATIVE,'USET_07');
$user->show_message(USRLAN_10);
}
if(!$sub_action){ $sub_action = "user_id"; }
if(!$id){ $id = "DESC"; }
}
else
{ // Put up confirmation
if ($sql->db_Select("user", "*", "user_id='".$_POST['userid']."' ")) { if ($sql->db_Select("user", "*", "user_id='".$_POST['userid']."' ")) {
$row = $sql->db_Fetch(); $row = $sql->db_Fetch();
$qry = (e_QUERY) ? "?".e_QUERY : ""; $qry = (e_QUERY) ? "?".e_QUERY : "";
@@ -365,33 +454,50 @@ if (isset($_POST['useraction']) && $_POST['useraction'] == 'deluser') {
} }
} }
} }
// ------- Make Admin.. --------------
if (isset($_POST['useraction']) && $_POST['useraction'] == "admin" && getperms('3')) {
// ------- Make Admin --------------
if (isset($_POST['useraction']) && $_POST['useraction'] == "admin" && getperms('3'))
{
$sql->db_Select("user", "user_id, user_name", "user_id='".$_POST['userid']."'"); $sql->db_Select("user", "user_id, user_name", "user_id='".$_POST['userid']."'");
$row = $sql->db_Fetch(); $row = $sql->db_Fetch();
$sql->db_Update("user", "user_admin='1' WHERE user_id='".$_POST['userid']."' "); $sql->db_Update("user", "user_admin='1' WHERE user_id='".$_POST['userid']."' ");
$admin_log->log_event('LAN_ADMIN_LOG_010',str_replace(array('--UID--','--NAME--'),array($row['user_id'],$row['user_name']),USRLAN_164),E_LOG_INFORMATIVE,'USET_08');
$user->show_message($row['user_name']." ".USRLAN_3." <a href='".e_ADMIN."administrator.php?edit.{$row['user_id']}'>".USRLAN_4."</a>"); $user->show_message($row['user_name']." ".USRLAN_3." <a href='".e_ADMIN."administrator.php?edit.{$row['user_id']}'>".USRLAN_4."</a>");
$action = "main"; $action = "main";
if(!$sub_action){ $sub_action = "user_id"; } if(!$sub_action){ $sub_action = "user_id"; }
if(!$id){ $id = "DESC"; } if(!$id){ $id = "DESC"; }
} }
// ------- Remove Admin -------------- // ------- Remove Admin --------------
if (isset($_POST['useraction']) && $_POST['useraction'] == "unadmin" && getperms('3')) { if (isset($_POST['useraction']) && $_POST['useraction'] == "unadmin" && getperms('3'))
$sql->db_Select("user", "*", "user_id='".$_POST['userid']."'"); {
$row = $sql->db_Fetch(); $sql->db_Select("user", "*", "user_id='".$_POST['userid']."'");
extract($row); $row = $sql->db_Fetch();
if ($user_perms == "0") { extract($row);
$user->show_message(USRLAN_5); if ($user_perms == "0")
} else { {
$sql->db_Update("user", "user_admin='0', user_perms='' WHERE user_id='".$_POST['userid']."'"); $user->show_message(USRLAN_5);
$user->show_message($user_name." ".USRLAN_6); }
else
{
$sql->db_Update("user", "user_admin='0', user_perms='' WHERE user_id='".$_POST['userid']."'");
$admin_log->log_event('LAN_ADMIN_LOG_011',str_replace(array('--UID--','--NAME--'),array($row['user_id'],$row['user_name']),USRLAN_165),E_LOG_INFORMATIVE,'USET_09');
$user->show_message($user_name." ".USRLAN_6);
$action = "main"; $action = "main";
if(!$sub_action){ $sub_action = "user_id"; } if(!$sub_action){ $sub_action = "user_id"; }
if(!$id){ $id = "DESC"; } if(!$id){ $id = "DESC"; }
} }
} }
// ------- Approve User. -------------- // ------- Approve User. --------------
if (isset($_POST['useraction']) && $_POST['useraction'] == "verify") if (isset($_POST['useraction']) && $_POST['useraction'] == "verify")
{ {
@@ -413,6 +519,7 @@ if (isset($_POST['useraction']) && $_POST['useraction'] == "verify")
} }
} }
$sql->db_Update("user", "user_ban='0'{$init_classes} WHERE user_id='".$uid."' "); $sql->db_Update("user", "user_ban='0'{$init_classes} WHERE user_id='".$uid."' ");
$admin_log->log_event('LAN_ADMIN_LOG_012',str_replace(array('--UID--','--NAME--'),array($row['user_id'],$row['user_name']),USRLAN_166),E_LOG_INFORMATIVE,'USET_10');
// $e_event->trigger("userveri", $row); // We do this from signup.php - should we do it here? // $e_event->trigger("userveri", $row); // We do this from signup.php - should we do it here?
$user->show_message(USRLAN_86); $user->show_message(USRLAN_86);
@@ -422,36 +529,38 @@ if (isset($_POST['useraction']) && $_POST['useraction'] == "verify")
if($pref['user_reg_veri'] == 2) if($pref['user_reg_veri'] == 2)
{ {
if($sql->db_Select("user", "user_email, user_name", "user_id = '{$uid}'")) if($sql->db_Select("user", "user_email, user_name", "user_id = '{$uid}'"))
{ {
$row = $sql->db_Fetch(); $row = $sql->db_Fetch();
$message = USRLAN_114." ".$row['user_name'].",\n\n".USRLAN_122." ".SITENAME.".\n\n".USRLAN_123."\n\n"; $message = USRLAN_114." ".$row['user_name'].",\n\n".USRLAN_122." ".SITENAME.".\n\n".USRLAN_123."\n\n";
$message .= str_replace("{SITEURL}", SITEURL, USRLAN_139); $message .= str_replace("{SITEURL}", SITEURL, USRLAN_139);
require_once(e_HANDLER."mail.php"); require_once(e_HANDLER."mail.php");
if(sendemail($row['user_email'], USRLAN_113." ".SITENAME, $message)) if(sendemail($row['user_email'], USRLAN_113." ".SITENAME, $message))
{ {
// echo str_replace("\n","<br>",$message); // echo str_replace("\n","<br>",$message);
$user->show_message("Email sent to: ".$row['user_name']); $user->show_message("Email sent to: ".$row['user_name']);
}
else
{
$user->show_message("Failed to send to: ".$row['user_name']);
}
} }
else
{
$user->show_message("Failed to send to: ".$row['user_name']);
}
}
} }
} }
} }
} }
if (isset($action) && $action == "uset") { if (isset($action) && $action == "uset")
$user->show_message(USRLAN_87); {
$action = "main"; $user->show_message(USRLAN_87);
$action = "main";
} }
if (isset($action) && $action == "cu") { if (isset($action) && $action == "cu")
$user->show_message(USRLAN_88); {
$action = "main"; $user->show_message(USRLAN_88);
$action = "main";
// $sub_action = "user_id"; // $sub_action = "user_id";
} }
@@ -466,25 +575,29 @@ echo "amount= ".$amount."<br />";
$unverified = $sql -> db_Count("user", "(*)", "WHERE user_ban = 2"); $unverified = $sql -> db_Count("user", "(*)", "WHERE user_ban = 2");
if (!e_QUERY || ($action == "main")) { if (!e_QUERY) $action = "main";
switch ($action)
{
case "unverified" :
$user->show_existing_users($action, $sub_action, $id, $from, $amount); $user->show_existing_users($action, $sub_action, $id, $from, $amount);
} break;
if (isset($action) && $action == "unverified") { case "options" :
$user->show_existing_users($action, $sub_action, $id, $from, $amount);
}
if (isset($action) && $action == "options") {
$user->show_prefs(); $user->show_prefs();
} break;
if (isset($action) && $action == "prune") { case "prune" :
$user->show_prune(); $user->show_prune();
break;
case "create" :
$user->add_user();
break;
default :
$user->show_existing_users($action, $sub_action, $id, $from, $amount);
} }
if (isset($action) && $action == "create") {
$user->add_user();
}
require_once("footer.php"); require_once("footer.php");
@@ -829,8 +942,10 @@ class users
} }
function show_options($action) {
function show_options($action)
{
global $unverified; global $unverified;
// ##### Display options // ##### Display options
if ($action == "") if ($action == "")
@@ -861,7 +976,11 @@ class users
show_admin_menu(USRLAN_76, $action, $var); show_admin_menu(USRLAN_76, $action, $var);
} }
function show_prefs() {
function show_prefs()
{
global $ns, $pref; global $ns, $pref;
$pref['memberlist_access'] = varset($pref['memberlist_access'], e_UC_MEMBER); $pref['memberlist_access'] = varset($pref['memberlist_access'], e_UC_MEMBER);
$text = "<div style='text-align:center'> $text = "<div style='text-align:center'>
@@ -940,12 +1059,19 @@ class users
$ns->tablerender(USRLAN_52, $text); $ns->tablerender(USRLAN_52, $text);
} }
function show_message($message) {
function show_message($message)
{
global $ns; global $ns;
$ns->tablerender("", "<div style='text-align:center'><b>".$message."</b></div>"); $ns->tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
} }
function show_prune() {
function show_prune()
{
global $ns, $sql; global $ns, $sql;
$unactive = $sql->db_Count("user", "(*)", "WHERE user_ban=2"); $unactive = $sql->db_Count("user", "(*)", "WHERE user_ban=2");
@@ -974,8 +1100,12 @@ class users
$ns->tablerender(USRLAN_55, $text); $ns->tablerender(USRLAN_55, $text);
} }
function add_user() {
global $rs, $ns;
function add_user()
{
global $rs, $ns, $pref, $e_userclass;
if (!is_object($e_userclass)) $e_userclass = new user_class;
$text = "<div style='text-align:center'>". $rs->form_open("post", e_SELF, "adduserform")." $text = "<div style='text-align:center'>". $rs->form_open("post", e_SELF, "adduserform")."
<table style='".ADMIN_WIDTH."' class='fborder'> <table style='".ADMIN_WIDTH."' class='fborder'>
<tr> <tr>
@@ -992,6 +1122,13 @@ class users
</td> </td>
</tr> </tr>
<tr>
<td style='width:30%' class='forumheader3'>".USRLAN_129."</td>
<td style='width:70%' class='forumheader3'>
".$rs->form_text("realname", 40, "", 30)."
</td>
</tr>
<tr> <tr>
<td style='width:30%' class='forumheader3'>".USRLAN_62."</td> <td style='width:30%' class='forumheader3'>".USRLAN_62."</td>
<td style='width:70%' class='forumheader3'> <td style='width:70%' class='forumheader3'>
@@ -1012,30 +1149,22 @@ class users
</tr>\n"; </tr>\n";
if (!is_object($sql)) $sql = new db; $temp = $e_userclass->vetted_tree('userclass[]',array($e_userclass,'checkbox_desc'), varset($pref['initial_user_classes'],''), 'classes');
if ($sql->db_Select("userclass_classes")) {
$text .= "<tr style='vertical-align:top'>
<td colspan='2' style='text-align:center' class='forumheader'> if ($temp)
{
$text .= "<tr style='vertical-align:top'>
<td class='forumheader3'>
".USRLAN_120." ".USRLAN_120."
</td> </td><td class='forumheader3'>{$temp}</td>
</tr>\n"; </tr>\n";
$c = 0;
while ($row = $sql->db_Fetch()) {
$class[$c][0] = $row['userclass_id'];
$class[$c][1] = $row['userclass_name'];
$class[$c][2] = $row['userclass_description'];
$c++;
}
$init_classes = explode(',',varset($pref['initial_user_classes'],''));
for($a = 0; $a <= (count($class)-1); $a++)
{
$selected = in_array($class[$a][0],$init_classes) ? " checked='checked'" : "";
$text .= "<tr><td style='width:30%' class='forumheader'>
<input type='checkbox' name='userclass[]' value='".$class[$a][0]."'{$selected} />".$class[$a][1]."
</td><td style='width:70%' class='forumheader3'> ".$class[$a][2]."</td></tr>\n";
}
} }
$text .= " $text .= "
<tr style='vertical-align:top'>
<td colspan='2' style='text-align:center' class='forumheader'>
<input class='button' type='checkbox' name='sendconfemail' value='1' />".USRLAN_151."
</td></tr>
<tr style='vertical-align:top'> <tr style='vertical-align:top'>
<td colspan='2' style='text-align:center' class='forumheader'> <td colspan='2' style='text-align:center' class='forumheader'>
<input class='button' type='submit' name='adduser' value='".USRLAN_60."' /> <input class='button' type='submit' name='adduser' value='".USRLAN_60."' />
@@ -1051,73 +1180,92 @@ class users
} }
function resend($id,$key,$name,$email,$lfile=''){ function resend($id,$key,$name,$email,$lfile='')
global $sql,$mailheader_e107id; {
global $sql,$mailheader_e107id, $admin_log;
// Check for a Language field, and if present, send the email in the user's language. // Check for a Language field, and if present, send the email in the user's language.
if($lfile == ""){ if($lfile == "")
if($sql -> db_Select("user_extended", "user_language", "user_extended_id = '$id'")){ {
$row = $sql -> db_Fetch(); if($sql -> db_Select("user_extended", "user_language", "user_extended_id = '$id'"))
$lfile = e_LANGUAGEDIR.$row['user_language']."/lan_signup.php";
}
}
if(is_readable($lfile)){
require_once($lfile);
}else{
$row['user_language'] = e_LANGUAGE;
require_once(e_LANGUAGEDIR.e_LANGUAGE."/lan_signup.php");
}
$return_address = (substr(SITEURL, -1) == "/") ? SITEURL."signup.php?activate.".$id.".".$key : SITEURL."/signup.php?activate.".$id.".".$key;
$message = LAN_EMAIL_01." ".$name."\n\n".LAN_SIGNUP_24." ".SITENAME.".\n".LAN_SIGNUP_21."...\n\n";
$message .= $return_address . "\n\n".SITENAME."\n".SITEURL;
$mailheader_e107id = $id;
require_once(e_HANDLER."mail.php");
if(sendemail($email, LAN_404." ".SITENAME, $message))
{ {
$row = $sql -> db_Fetch();
$lfile = e_LANGUAGEDIR.$row['user_language']."/lan_signup.php";
}
}
if(is_readable($lfile))
{
require_once($lfile);
}
else
{
$row['user_language'] = e_LANGUAGE;
require_once(e_LANGUAGEDIR.e_LANGUAGE."/lan_signup.php");
}
$return_address = (substr(SITEURL, -1) == "/") ? SITEURL."signup.php?activate.".$id.".".$key : SITEURL."/signup.php?activate.".$id.".".$key;
$message = LAN_EMAIL_01." ".$name."\n\n".LAN_SIGNUP_24." ".SITENAME.".\n".LAN_SIGNUP_21."...\n\n";
$message .= $return_address . "\n\n".SITENAME."\n".SITEURL;
$mailheader_e107id = $id;
require_once(e_HANDLER."mail.php");
if(sendemail($email, LAN_404." ".SITENAME, $message))
{
// echo str_replace("\n","<br>",$message); // echo str_replace("\n","<br>",$message);
$this->show_message(USRLAN_140.": <a href='mailto:".$email."?body=".$return_address."' title=\"".DUSRLAN_7."\" >".$name."</a> (".$row['user_language'].") "); $admin_log->log_event('LAN_ADMIN_LOG_013',str_replace(array('--ID--','--NAME--','--EMAIL--'),array($id,$name,$email),USRLAN_167),E_LOG_INFORMATIVE,'USET_11');
} $this->show_message(USRLAN_140.": <a href='mailto:".$email."?body=".$return_address."' title=\"".DUSRLAN_7."\" >".$name."</a> (".$row['user_language'].") ");
else }
{ else
$this->show_message(USRLAN_141.": ".$name); {
} $this->show_message(USRLAN_141.": ".$name);
}
} }
function resend_to_all(){ function resend_to_all()
global $sql,$pref,$sql3; {
$pause_count = 1; global $sql,$pref,$sql3, $admin_log;
$pause_amount = ($pref['mail_pause']) ? $pref['mail_pause'] : 10; $count = 0;
$pause_time = ($pref['mail_pausetime']) ? $pref['mail_pausetime'] : 1; $pause_count = 1;
$pause_amount = ($pref['mail_pause']) ? $pref['mail_pause'] : 10;
$pause_time = ($pref['mail_pausetime']) ? $pref['mail_pausetime'] : 1;
if($sql -> db_Select_gen("SELECT user_language FROM #user_extended LIMIT 1")){ if($sql -> db_Select_gen("SELECT user_language FROM #user_extended LIMIT 1"))
$query = "SELECT u.*, ue.* FROM #user AS u LEFT JOIN #user_extended AS ue ON ue.user_extended_id = u.user_id WHERE u.user_ban = 2 ORDER BY u.user_id DESC"; {
}else{ $query = "SELECT u.*, ue.* FROM #user AS u LEFT JOIN #user_extended AS ue ON ue.user_extended_id = u.user_id WHERE u.user_ban = 2 ORDER BY u.user_id DESC";
$query = "SELECT * FROM #user WHERE user_ban='2'"; }
} else
{
$query = "SELECT * FROM #user WHERE user_ban='2'";
}
if(!is_object($sql3)){ if(!is_object($sql3))
$sql3 = new db; {
} $sql3 = new db;
}
$sql3 -> db_Select_gen($query); $sql3 -> db_Select_gen($query);
while($row = $sql3-> db_Fetch()){ while($row = $sql3-> db_Fetch())
echo $row['user_id']." ".$row['user_sess']." ".$row['user_name']." ".$row['user_email']."<br />"; {
$this->resend($row['user_id'],$row['user_sess'],$row['user_name'],$row['user_email'],$row['user_language']); echo $row['user_id']." ".$row['user_sess']." ".$row['user_name']." ".$row['user_email']."<br />";
if($pause_count > $pause_amount){ $this->resend($row['user_id'],$row['user_sess'],$row['user_name'],$row['user_email'],$row['user_language']);
sleep($pause_time); if($pause_count > $pause_amount)
$pause_count = 1; {
} sleep($pause_time);
sleep(1); $pause_count = 1;
$pause_count++; }
} sleep(1);
$pause_count++;
$count++;
}
if ($count)
{
$admin_log->log_event('LAN_ADMIN_LOG_014',str_replace('--COUNT--',$count,USRLAN_168),E_LOG_INFORMATIVE,'USET_12');
}
} }
@@ -1134,22 +1282,22 @@ class users
function check_bounces($bounce_act='first_check', $bounce_arr = '') function check_bounces($bounce_act='first_check', $bounce_arr = '')
{ {
global $sql,$pref; global $sql,$pref;
include(e_HANDLER."pop3_class.php"); include(e_HANDLER."pop3_class.php");
if (!trim($bounce_act)) $bounce_act='first_check'; if (!trim($bounce_act)) $bounce_act='first_check';
// echo "Check bounces. Action: {$bounce_act}; Entries: {$bounce_arr}<br />"; // echo "Check bounces. Action: {$bounce_act}; Entries: {$bounce_arr}<br />";
$obj= new receiveMail($pref['mail_bounce_user'],$pref['mail_bounce_pass'],$pref['mail_bounce_email'],$pref['mail_bounce_pop3'],'pop3','110'); $obj= new receiveMail($pref['mail_bounce_user'],$pref['mail_bounce_pass'],$pref['mail_bounce_email'],$pref['mail_bounce_pop3'],'pop3','110');
$del_count = 0; $del_count = 0;
if ($bounce_act !='first_check') if ($bounce_act !='first_check')
{ // Must do some deleting { // Must do some deleting
$obj->connect(); $obj->connect();
$tot=$obj->getTotalMails(); $tot=$obj->getTotalMails();
$del_array = explode(',',$bounce_arr); $del_array = explode(',',$bounce_arr);
for($i=1;$i<=$tot;$i++) for($i=1;$i<=$tot;$i++)
{ // Scan all emails; delete current one if meets the criteria { // Scan all emails; delete current one if meets the criteria
$dodel = FALSE; $dodel = FALSE;
switch ($bounce_act) switch ($bounce_act)
{ {
@@ -1187,31 +1335,31 @@ class users
$obj->deleteMails($i); $obj->deleteMails($i);
$del_count++; // Keep track of number of emails deleted $del_count++; // Keep track of number of emails deleted
} }
} // End - Delete one email } // End - Delete one email
$obj->close_mailbox(); // This actually deletes the emails $obj->close_mailbox(); // This actually deletes the emails
} // End of email deletion } // End of email deletion
// Now list the emails that are left // Now list the emails that are left
$obj->connect(); $obj->connect();
$tot=$obj->getTotalMails(); $tot=$obj->getTotalMails();
$found = FALSE; $found = FALSE;
$DEL = ($pref['mail_bounce_delete']) ? TRUE : FALSE; $DEL = ($pref['mail_bounce_delete']) ? TRUE : FALSE;
$text = "<br /><div><form method='post' action='".e_SELF.$qry."'><table class='fborder' style='".ADMIN_WIDTH."'> $text = "<br /><div><form method='post' action='".e_SELF.$qry."'><table class='fborder' style='".ADMIN_WIDTH."'>
<tr><td class='fcaption' style='width:5%'>#</td><td class='fcaption'>e107-id</td><td class='fcaption'>email</td><td class='fcaption'>Subject</td><td class='fcaption'>Bounce</td></tr>\n"; <tr><td class='fcaption' style='width:5%'>#</td><td class='fcaption'>e107-id</td><td class='fcaption'>email</td><td class='fcaption'>Subject</td><td class='fcaption'>Bounce</td></tr>\n";
for($i=1;$i<=$tot;$i++) for($i=1;$i<=$tot;$i++)
{ {
$head=$obj->getHeaders($i); $head=$obj->getHeaders($i);
if($head['bounce']) if($head['bounce'])
{ // Its a 'bounce' email { // Its a 'bounce' email
if (ereg('.*X-e107-id:(.*)MIME', $obj->getBody($i), $result)) if (ereg('.*X-e107-id:(.*)MIME', $obj->getBody($i), $result))
{ {
if($result[1]) if($result[1])
{ {
$id[$i] = intval($result[1]); // This should be a user ID - but not on special mailers! $id[$i] = intval($result[1]); // This should be a user ID - but not on special mailers!
// Try and pull out an email address from body - should be the one that failed // Try and pull out an email address from body - should be the one that failed
if (preg_match("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $obj->getBody($i), $result)) if (preg_match("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $obj->getBody($i), $result))
@@ -1219,44 +1367,49 @@ class users
$emails[$i] = "'".$result[0]."'"; $emails[$i] = "'".$result[0]."'";
} }
$found = TRUE; $found = TRUE;
} }
} }
elseif (preg_match("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $obj->getBody($i), $result)) elseif (preg_match("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $obj->getBody($i), $result))
{ {
if($result[0] && $result[0] != $pref['mail_bounce_email']) if($result[0] && $result[0] != $pref['mail_bounce_email'])
{ {
$emails[$i] = "'".$result[0]."'"; $emails[$i] = "'".$result[0]."'";
$found = TRUE; $found = TRUE;
} }
elseif($result[1] && $result[1] != $pref['mail_bounce_email']) elseif($result[1] && $result[1] != $pref['mail_bounce_email'])
{ {
$emails[$i] = "'".$result[1]."'"; $emails[$i] = "'".$result[1]."'";
$found = TRUE; $found = TRUE;
} }
} }
if ($DEL && $found) if ($DEL && $found)
{ // Auto-delete bounced emails once noticed (if option set) { // Auto-delete bounced emails once noticed (if option set)
$obj->deleteMails($i); $obj->deleteMails($i);
$del_count++; $del_count++;
} }
} }
else else
{ // Its a warning message or similar { // Its a warning message or similar
// $id[$i] = ''; // Don't worry about an ID for now // $id[$i] = ''; // Don't worry about an ID for now
// Try and pull out an email address from body - should be the one that failed // Try and pull out an email address from body - should be the one that failed
if (preg_match("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $obj->getBody($i), $result)) if (preg_match("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $obj->getBody($i), $result))
{ {
$wmails[$i] = "'".$result[0]."'"; $wmails[$i] = "'".$result[0]."'";
} }
}
$text .= "<tr><td class='forumheader3'>".$i."</td><td class='forumheader3'>".$id[$i]."</td><td class='forumheader3'>".(isset($emails[$i]) ? $emails[$i] : $wmails[$i])."</td><td class='forumheader3'>".$head['subject']."</td><td class='forumheader3'>".($head['bounce'] ? ADMIN_TRUE_ICON : ADMIN_FALSE_ICON);
$text .= "<input type='checkbox' name='delete_email[]' value='{$i}' /></td></tr>\n";
} }
$text .= "<tr><td class='forumheader3'>".$i."</td><td class='forumheader3'>".$id[$i]."</td><td class='forumheader3'>".(isset($emails[$i]) ? $emails[$i] : $wmails[$i])."</td><td class='forumheader3'>".$head['subject']."</td><td class='forumheader3'>".($head['bounce'] ? ADMIN_TRUE_ICON : ADMIN_FALSE_ICON);
$text .= "<input type='checkbox' name='delete_email[]' value='{$i}' /></td></tr>\n";
}
if ($del_count)
{
$admin_log->log_event('LAN_ADMIN_LOG_015',str_replace('--COUNT--',$del_count,USRLAN_169),E_LOG_INFORMATIVE,'USET_13');
}
if ($tot)
if ($tot)
{ // Option to delete emails - only if there are some in the list { // Option to delete emails - only if there are some in the list
$text .= "</table><table style='".ADMIN_WIDTH."'><tr> $text .= "</table><table style='".ADMIN_WIDTH."'><tr>
<td class='forumheader3' style='text-align: center;'><input class='button' type='submit' name='delnonbouncesubmit' value='".USRLAN_153."' /></td>\n <td class='forumheader3' style='text-align: center;'><input class='button' type='submit' name='delnonbouncesubmit' value='".USRLAN_153."' /></td>\n
@@ -1264,30 +1417,28 @@ class users
<td class='forumheader3' style='text-align: center;'><input class='button' type='submit' name='delcheckedsubmit' value='".USRLAN_149."' /></td>\n <td class='forumheader3' style='text-align: center;'><input class='button' type='submit' name='delcheckedsubmit' value='".USRLAN_149."' /></td>\n
<td class='forumheader3' style='text-align: center;'><input class='button' type='submit' name='delallsubmit' value='".USRLAN_150."' /></td>\n <td class='forumheader3' style='text-align: center;'><input class='button' type='submit' name='delallsubmit' value='".USRLAN_150."' /></td>\n
</td></tr>"; </td></tr>";
} }
$text .= "</table></form></div>"; $text .= "</table></form></div>";
array_unique($id); array_unique($id);
array_unique($emails); array_unique($emails);
$all_ids = implode(",",$id); $all_ids = implode(",",$id);
$all_emails = implode(",",$emails); $all_emails = implode(",",$emails);
$obj->close_mailbox(); // This will actually delete emails $obj->close_mailbox(); // This will actually delete emails
// $tot has total number of emails in the mailbox // $tot has total number of emails in the mailbox
$found = count($emails); // $found - Number of bounce emails found $found = count($emails); // $found - Number of bounce emails found
// $del_count has number of emails deleted // $del_count has number of emails deleted
// Update bounce status for users // Update bounce status for users
$ed = $sql -> db_Update("user", "user_ban=3 WHERE (`user_id` IN (".$all_ids.") OR `user_email` IN (".$all_emails.")) AND user_sess !='' "); $ed = $sql -> db_Update("user", "user_ban=3 WHERE (`user_id` IN (".$all_ids.") OR `user_email` IN (".$all_emails.")) AND user_sess !='' ");
if (!$ed) $ed = '0'; if (!$ed) $ed = '0';
$this->show_message(str_replace(array('{TOTAL}','{DELCOUNT}','{DELUSER}','{FOUND}'), $this->show_message(str_replace(array('{TOTAL}','{DELCOUNT}','{DELUSER}','{FOUND}'),
array($tot,$del_count,$ed,$found),USRLAN_155).$text); array($tot,$del_count,$ed,$found),USRLAN_155).$text);
} }
} // End class users } // End class users

View File

@@ -1,6 +1,6 @@
<?php <?php
// e107 Language File. // e107 Language File.
// $Id: lan_log_messages.php,v 1.4 2007-12-29 22:07:49 e107steved Exp $ // $Id: lan_log_messages.php,v 1.5 2008-01-01 12:38:05 e107steved Exp $
/* /*
The definitions in this file are for standard 'explanatory' messages which might be entered The definitions in this file are for standard 'explanatory' messages which might be entered
@@ -29,9 +29,9 @@ define('LAN_AUDIT_LOG_014', 'User logged out');
define('LAN_AUDIT_LOG_015', 'User changed display name'); define('LAN_AUDIT_LOG_015', 'User changed display name');
define('LAN_AUDIT_LOG_016', 'User changed password'); define('LAN_AUDIT_LOG_016', 'User changed password');
define('LAN_AUDIT_LOG_017', 'User changed email address'); define('LAN_AUDIT_LOG_017', 'User changed email address');
define('LAN_AUDIT_LOG_018', ''); define('LAN_AUDIT_LOG_018', 'User password reset');
define('LAN_AUDIT_LOG_019', 'User changed settings'); define('LAN_AUDIT_LOG_019', 'User changed settings');
define('LAN_AUDIT_LOG_020', ""); define('LAN_AUDIT_LOG_020', 'User added by admin');
// Admin log events // Admin log events
@@ -39,14 +39,22 @@ define('LAN_AUDIT_LOG_020', "");
define('LAN_ADMIN_LOG_001', 'Admin edited user data'); define('LAN_ADMIN_LOG_001', 'Admin edited user data');
define('LAN_ADMIN_LOG_002', 'Admin log - delete old data'); define('LAN_ADMIN_LOG_002', 'Admin log - delete old data');
define('LAN_ADMIN_LOG_003', 'User Audit log - delete old data'); define('LAN_ADMIN_LOG_003', 'User Audit log - delete old data');
define('LAN_ADMIN_LOG_004', ''); define('LAN_ADMIN_LOG_004', 'User added by Admin');
define('LAN_ADMIN_LOG_005', ''); define('LAN_ADMIN_LOG_005', 'User options updated');
define('LAN_ADMIN_LOG_006', ''); define('LAN_ADMIN_LOG_006', 'Users pruned');
define('LAN_ADMIN_LOG_007', ''); define('LAN_ADMIN_LOG_007', 'User banned');
define('LAN_ADMIN_LOG_008', ''); define('LAN_ADMIN_LOG_008', 'User unbanned');
define('LAN_ADMIN_LOG_009', ''); define('LAN_ADMIN_LOG_009', 'User deleted');
define('LAN_ADMIN_LOG_010', ''); define('LAN_ADMIN_LOG_010', 'User made admin');
define('LAN_ADMIN_LOG_011', ''); define('LAN_ADMIN_LOG_011', 'User admin status revoked');
define('LAN_ADMIN_LOG_012', 'User approved');
define('LAN_ADMIN_LOG_013', 'Resend validation email');
define('LAN_ADMIN_LOG_014', 'Resend all validation emails');
define('LAN_ADMIN_LOG_015', 'Bounced emails deleted');
define('LAN_ADMIN_LOG_016', '');
define('LAN_ADMIN_LOG_017', '');
define('LAN_ADMIN_LOG_018', '');
define('LAN_ADMIN_LOG_019', '');
// Userclass events // Userclass events
//------------------ //------------------
@@ -74,4 +82,18 @@ define('AL_BAN_LAN_10','Whitelist entry edited');
define('AL_BAN_LAN_11','Whitelist hit for ban entry'); define('AL_BAN_LAN_11','Whitelist hit for ban entry');
// Rolling log events
//-------------------
define('LAN_ROLL_LOG_01','Empty username and/or password');
define('LAN_ROLL_LOG_02','Incorrect image code entered');
define('LAN_ROLL_LOG_03','Invalid username/password combination');
define('LAN_ROLL_LOG_04','Invalid username entered');
define('LAN_ROLL_LOG_05','Login attempt by user not fully signed up');
define('LAN_ROLL_LOG_06','Login blocked by event trigger handler');
define('LAN_ROLL_LOG_07','Multiple logins from same address');
define('LAN_ROLL_LOG_08','');
define('LAN_ROLL_LOG_09','');
define('LAN_ROLL_LOG_10','');
?> ?>

View File

@@ -4,8 +4,8 @@
| e107 website system - Language File. | e107 website system - Language File.
| |
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_users.php,v $ | $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_users.php,v $
| $Revision: 1.8 $ | $Revision: 1.9 $
| $Date: 2007-12-26 13:21:34 $ | $Date: 2008-01-01 12:38:05 $
| $Author: e107steved $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -120,8 +120,8 @@ define("USRLAN_125", "From");
define("USRLAN_126", "Allow users to rate users"); define("USRLAN_126", "Allow users to rate users");
define("USRLAN_127", "Allow comments in user profile"); define("USRLAN_127", "Allow comments in user profile");
define("USRLAN_128", "Username"); define("USRLAN_128", "Username (login name)");
define("USRLAN_129", "Real Name");
define("USRLAN_130", "Enable online user tracking"); define("USRLAN_130", "Enable online user tracking");
define("USRLAN_131", "You must enable this option to use online user tracking options, like online.php, forum online info and online menus"); define("USRLAN_131", "You must enable this option to use online user tracking options, like online.php, forum online info and online menus");
define("USRLAN_132", "Enable"); define("USRLAN_132", "Enable");
@@ -149,6 +149,26 @@ define("USRLAN_147", "Email address is already used by a banned user");
define("USRLAN_148", "Email address is banned"); define("USRLAN_148", "Email address is banned");
define('USRLAN_149', "User banned: "); define('USRLAN_149', "User banned: ");
define('USRLAN_150', "IP address of {IP} appears on whitelist; IP not banned."); define('USRLAN_150', "IP address of {IP} appears on whitelist; IP not banned.");
define('USRLAN_151', "Send confirmation email with password to new user");
define('USRLAN_152', 'Invalid characters in login name');
define('USRLAN_153', 'That login name already in use');
define('USRLAN_154', 'Length of login name outside limits');
define('USRLAN_155', 'A user account has been created for you at --SITE-- with the following login:<br />Login Name: --LOGIN--<br />Password: --PASSWORD--<br/><br />');
define('USRLAN_156', 'Please go to the site as soon as possible and log in, then change your password using the \'Settings\' option.<br /><br />
You can also change other settings at the same time.<br /><br />Note that your password cannot be recovered if you lose it.');
define('USRLAN_157', 'Access to website: ');
define('USRLAN_158', 'Email sent successfully');
define('USRLAN_159', 'Error sending email');
define('USRLAN_160', 'Total --COUNT-- users of type --TYPE-- pruned');
define('USRLAN_161', 'User ID --UID-- name --NAME-- banned');
define('USRLAN_162', 'User ID --UID-- name --NAME-- unbanned');
define('USRLAN_163', 'User ID --UID-- deleted');
define('USRLAN_164', 'User ID --UID-- name --NAME-- made admin');
define('USRLAN_165', 'User ID --UID-- name --NAME-- admin status revoked');
define('USRLAN_166', 'User ID --UID-- name --NAME-- approved');
define('USRLAN_167', 'Validation email ID --ID-- resent to --NAME-- at --EMAIL--');
define('USRLAN_168', 'Re-send --COUNT-- validation emails');
define('USRLAN_169', 'Total --COUNT-- bounced emails deleted');
define("LAN_MAINADMIN","Main Admin"); define("LAN_MAINADMIN","Main Admin");
define("LAN_ADMIN","Admin"); define("LAN_ADMIN","Admin");