Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/whosonline.php
<html>
<?
function rootpath(){
	global $DOCUMENT_ROOT;
	$rootdir = $DOCUMENT_ROOT;
	if ($DOCUMENT_ROOT[strlen($DOCUMENT_ROOT)] == "/"){
		return $rootdir;
	} else {
		$rootdir = $rootdir."/";
		return $rootdir;
	}
}
include('dbconn.php');
include('config.php');
	$testrslt = mysql_query("SELECT usrname, usrpass, language, templatesel, usrflags FROM ".$OekakiPoteto_MemberPrefix."oekaki WHERE usrname='$OekakiU'");
	
	//extract the fields selected above into variables
	$row = mysql_fetch_array($testrslt);

if($OekakiU == ""){
	include("language/".$language.".php");
	include("templates/".$template.".php");
	} else {
	include("templates/".$row[templatesel].".php");
	include("language/".$row[language].".php");
}
$result2 = mysql_query("SELECT * FROM ".$OekakiPoteto_MemberPrefix."oekakionline order by onlineusr asc");

?>
<head>
<title><?=$BBStitle?> - OekakiPoteto</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
<script language="JavaScript" type="text/JavaScript">
<!--
  function openProfile(url, w, h) {
    var options = "width=" + w + ",height=" + h + ",";
    options += "resizable=yes,scrollbars=yes,status=no,";
    options += "menubar=no,toolbar=no,location=no,directories=no";
    var newWin = window.open(url, 'tehprofile', options);
    newWin.focus();
  }
//-->
</script>
<meta http-equiv="refresh" content="15;url=whosonline.php">
</head>
<body bgcolor="<?=$bgColor?>" text="<?=$textColor?>" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="templates/<?=$bgImage?>" link="<?=$link?>" vlink="<?=$vLink?>" alink="<?=$aLink?>">
<table width="100%" cellpadding="<?=$hCellPadding?>" align="center" cellspacing="0" class="infotable">
  <tr> 
    <td height="104" valign="top"> <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center" class="infotable">
        <tr> 
          <td width="100%" class="header"><font size="-1"><?=$langop_online_title?> (<?=$langop_online_last?>)</font></td>
        </tr>
        <tr> 
          <td class="infotable">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
              <tr> 
                <td><font size="-2"><strong><?=$langop_word_username?></strong></font></td>
                <td><font size="-2"><strong><?=$langop_word_location?></strong></font></td>
                <td><font size="-2"><strong><?=$langop_word_board?></strong></font></td>
              </tr>
              <? while($row = mysql_fetch_array($result2)){?>
              <tr> 
                <td><font size="-2"> 
                  <a onClick="openProfile('profile.php?user=<?=$row[onlineusr];?>', 300, 400); return false" a href="profile.php?user=<?=$row[onlineusr];?>"><?=$row[onlineusr];?>
</a>
                  </font></td>
                <td><font size="-2"> 
                  <?=$row[locale]?>
                  </font></td>
                <td><font size="-2"> 
                  <?=$row[onlineboard]?>
                  </font></td>
              </tr>
			  <? } ?>
            </table></td>
        </tr>
      </table>
      <div align="center"><font size="-2"><br>
        <?=$langop_online_refresh?></font><br>
        <a onClick="javascript: window.close();" href="#"><font size="-2" face="<?=$fontFace?>"><?=$langop_common_window?></font></a> </div></td>
  </tr>
</table>

<p align="center"><a onclick="javascript: window.close();" href="#"><font size="-2" face="<?=$fontFace?>"> 
  </font></a></p>
</body>
Return current item: OekakiPoteto