in case you don't know what hot or not is:
Hot or Not
<%
Dim IIS_USER
Dim CurrentTime
IIS_USER = request.servervariables("LOGON_USER")
Session("IIS_USER")= IIS_USER
LN = Request.ServerVariables("REMOTE_USER")
UserName = LCase(Right(LN, Len(LN) - InStr(1, LN, "")))
set rs=Server.CreateObject("adodb.Recordset")
connectme="driver={SQL Server};SERVER=MyServer;DATABASE=MyDatabase_Name;UID=MyUser_ID;PWD=MyPassword;"
sqlstmt = "SELECT * FROM Department_Employees WHERE UserName='" & UserName & "'"
rs.open sqlstmt, connectme
if rs.eof then
call pass_on
else
%>
<body onLoad="MyForm1.submit()">
<form method="POST" action="http://MyDomain/xoops/html/user.php" name="MyForm1">
<p><input type="text" name="uname" size="20" value="<%=UserName%>"></p>
<p><input type="password" name="pass" size="20" value="<%=12345%>"></p>
<input type="hidden" name="xoops_redirect"
value="/xoops/html/modules/news/index.php" /><input type="hidden" name="op"
value="login" />
<p><input type="submit" value="User Login" /> </p>
</form>
<%
end if
function pass_on()
response.redirect "http://MyDomain/xoops/html"
end function
%>
//This is from the main.php of the xoopmembers module
define("_MM_EXTENSION","Extension");
//*****************************************************************************************************
//This is in the index.php of the xoopmembers module
//Line 85
$Extension = new XoopsFormText(_MM_EXTENSION, "Extension", 10, 5);
//Line 289-291
if ( !empty($HTTP_POST_VARS['Extension']) ) {
$criteria->add(new Criteria('user_extension', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['Extension'])).'%', 'LIKE'));
}
//Line 312-315
$criteria->add(new Criteria('level', 0, '>'));
$validsort = array("uname", "email", "last_login", "Extension", "posts");
$sort = (!in_array($HTTP_POST_VARS['user_sort'], $validsort)) ? "uname" : $HTTP_POST_VARS['user_sort'];
$order = "ASC";
//Line 338
$xoopsTpl->assign('lang_Extension', _MM_EXTENSION);
//Line 373
$userdata['Extension'] = "Ext. " .$foundusers[$j]->getVar("user_extension");
//*******************************************************************************************************
//This is from the db%Axoopsmembers_searchresults.htm located in the xoopshtmtemplates_c directory
//Line 15
</th><th align="center"><?php echo $this->_tpl_vars['lang_Extension']; ?>
//Line 56
</td><td class="even" align="center"><?php echo $this->_tpl_vars['users'][$this->_sections['i']['index']]['extension']; ?>