<?php
include_once 'sql.cls.php';
include_once 'mylog.cls.php';
$mysql=new sqlFunctions();
$mysql->__construct($core, '', $dbh);
$lw=new myLogWriter();
$lw->__construct($mysql);
$logs=$lw->getThisSessionLogArray(MU_USER_LOGIN_ID, 50);
// assign it into a template variable.. here i perfer to use smarty
if(is_array($logs)) $tpl->assign('activitieslog',$logs);
$tpl->display('mylogs.tpl');
?>
|