many times members do register but they dont activate there account leading to few registered users listed in the list without being getting activated.
Is there anyway to find out the users who have to activate there accounts.
function redirect_header($url, $time = 3, $message = '', $addredirect = true)
{
global $xoopsConfig, $xoopsRequestUri;
if (!defined('XOOPS_CPFUNC_LOADED')) {
require_once XOOPS_ROOT_PATH.'/class/template.php';
$xoopsTpl = new XoopsTpl();
$xoopsTpl->assign('sitename', $xoopsConfig['sitename']);
$xoopsTpl->assign('langcode', _LANGCODE);
$xoopsTpl->assign('charset', _CHARSET);
$xoopsTpl->assign('time', $time);
if ($addredirect && strstr($url, 'user.php')) {
if (!strstr($url, '?')) {
$url .= '?xoops_redirect='.urlencode($xoopsRequestUri);
} else {
$url .= '&xoops_redirect='.urlencode($xoopsRequestUri);
}
}
if (defined('SID') && (! isset($_COOKIE[session_name()]) || ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '' && !isset($_COOKIE[$xoopsConfig['session_name']])))) {
if (!strstr($url, '?')) {
$url .= '?' . SID;
}
else {
$url .= '&'.SID;
}
}
$url = preg_replace("/&/i", '&', htmlspecialchars($url, ENT_QUOTES));
$xoopsTpl->assign('url', $url);
$message = trim($message) != '' ? $message : _TAKINGBACK;
$xoopsTpl->assign('message', $message);
$xoopsTpl->assign('lang_ifnotreload', sprintf(_IFNOTRELOAD, $url));
$GLOBALS['xoopsModuleUpdate'] = 1;
$xoopsTpl->display('db:system_redirect.html');
exit();
} else {
$url = preg_replace("/&/i", '&', htmlspecialchars($url, ENT_QUOTES));
echo '
<html>
<head>
<title>'.$xoopsConfig['sitename'].'</title>
<meta http-equiv="Content-Type" content="text/html; charset='._CHARSET.'" />
<meta http-equiv="Refresh" content="'.$time.'; url='.$url.'" />
<style type="text/css">
body {background-color : #fcfcfc; font-size: 12px; font-family: Trebuchet MS,Verdana, Arial, Helvetica, sans-serif; margin: 0px;}
.redirect {width: 70%; margin: 110px; text-align: center; padding: 15px; border: #e0e0e0 1px solid; color: #666666; background-color: #f6f6f6;}
.redirect a:link {color: #666666; text-decoration: none; font-weight: bold;}
.redirect a:visited {color: #666666; text-decoration: none; font-weight: bold;}
.redirect a:hover {color: #999999; text-decoration: underline; font-weight: bold;}
</style>
</head>
<body>
<div align="center">
<div class="redirect">
<span style="font-size: 16px; font-weight: bold;">'.$message.'</span>
<hr style="height: 3px; border: 3px #E18A00 solid; width: 95%;" />
<p>'.sprintf(_IFNOTRELOAD, $url).'</p>
</div>
</div>
</body>
</html>';
}
exit();
}
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=startList;