From: naoki i. <am...@us...> - 2008-04-18 12:41:47
|
Update of /cvsroot/popfile/engine/skins/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14105/skins/default Modified Files: administration-page.thtml common-bottom.thtml Log Message: Change Log 1. Added 'Current active user sessions' section in the administration tab ( in the multiuser mode only ) 2. New function get_current_sessions() UI/HTML.pm Classifier/Bayes.pm POPFile/API.pm skins/default/administration-page.thtml languages/English.msg languages/Nihongo.msg This will allow administrators to check the current users' activities. NOTE : The administrator's session ( got by get_administrator_session_key ) is not be shown. 3. In the multiuser mode, the login user name is shown at the bottom of the UI UI/HTML.pm The login user name is shown instead of the last login user name. 4. XML-RPC stealth/server setting is now configured correctly UI/XMLRPC.pm 5. Add some status messages in the UI UI/HTML.pm UI/XMLRPC.pm Proxy/POP3.pm Proxy/SMTP.pm Proxy/NNTP.pm languages/English.msg languages/Nihongo.msg tests/TestHTML.script Magnet tab Administration tab 6. Avoid redirect to logout or shutdown page from the password page UI/HTML.pm 7. Password page for the single user mode is restored UI/HTML.pm 8. Update language file languages/Nihongo.msg 9. Minor changes of the skins skins/default/common-bottom.thtml skins/default/administration-page.thtml Current state of the test suite: TestBayesScript PASS TestBayes PASS TestConfiguration PASS * TestHistory PASS TestHTML PASS * TestHTTP PASS TestIMAP PASS TestInsertScript PASS * TestLogger PASS TestMailParse PASS TestModule PASS TestMQ PASS TestMutex PASS TestPipeScript PASS TestPOP3 PASS TestProxy PASS TestWordMangle PASS TestXMLRPC PASS * : TODO : needs to add tests for multi user support Index: common-bottom.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/common-bottom.thtml,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** common-bottom.thtml 17 Apr 2008 15:13:05 -0000 1.17 --- common-bottom.thtml 18 Apr 2008 12:41:49 -0000 1.18 *************** *** 13,17 **** <table class="footer" summary=""> <tr> ! <td class="footerBody"> <a class="bottomLink" href="http://getpopfile.org/" title="<TMPL_VAR NAME="Localize_tip_Footer_HomePage">"> <TMPL_VAR NAME="Localize_Footer_HomePage"></a> --- 13,17 ---- <table class="footer" summary=""> <tr> ! <td class="footerBody" width="30%"> <a class="bottomLink" href="http://getpopfile.org/" title="<TMPL_VAR NAME="Localize_tip_Footer_HomePage">"> <TMPL_VAR NAME="Localize_Footer_HomePage"></a> *************** *** 24,30 **** <br /> </td> ! <td class="footerBody"> <a class="bottomLink" href="http://getpopfile.org/"> ! <img src="<TMPL_VAR NAME="Skin_Root">otto.png" border="0" alt="" /></a> <br /> <span title="<TMPL_VAR NAME="Localize_tip_Footer_Version">"><TMPL_VAR NAME="Common_Bottom_Version"></span> --- 24,30 ---- <br /> </td> ! <td class="footerBody" width="40%"> <a class="bottomLink" href="http://getpopfile.org/"> ! <img src="<TMPL_VAR NAME="Skin_Root">otto.png" border="0" title="<TMPL_VAR NAME="Localize_tip_Footer_HomePage">" alt="<TMPL_VAR NAME="Localize_tip_Footer_HomePage">" /></a> <br /> <span title="<TMPL_VAR NAME="Localize_tip_Footer_Version">"><TMPL_VAR NAME="Common_Bottom_Version"></span> *************** *** 32,36 **** <span title="<TMPL_VAR NAME="Localize_tip_Footer_Login">">(<TMPL_VAR NAME="Common_Bottom_Date"> - <TMPL_VAR NAME="Common_Bottom_LastLogin">)</span> </td> ! <td class="footerBody"> <a class="bottomLink" href="http://getpopfile.org/wiki/<TMPL_VAR NAME="Localize_RequestFeatureLink">" title="<TMPL_VAR NAME="Localize_tip_Footer_RFE">"> <TMPL_VAR NAME="Localize_Footer_RequestFeature"></a> --- 32,36 ---- <span title="<TMPL_VAR NAME="Localize_tip_Footer_Login">">(<TMPL_VAR NAME="Common_Bottom_Date"> - <TMPL_VAR NAME="Common_Bottom_LastLogin">)</span> </td> ! <td class="footerBody" width="30%"> <a class="bottomLink" href="http://getpopfile.org/wiki/<TMPL_VAR NAME="Localize_RequestFeatureLink">" title="<TMPL_VAR NAME="Localize_tip_Footer_RFE">"> <TMPL_VAR NAME="Localize_Footer_RequestFeature"></a> Index: administration-page.thtml =================================================================== RCS file: /cvsroot/popfile/engine/skins/default/administration-page.thtml,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** administration-page.thtml 17 Apr 2008 15:13:05 -0000 1.16 --- administration-page.thtml 18 Apr 2008 12:41:49 -0000 1.17 *************** *** 61,65 **** <td class="settingsPanel" width="33%" valign="top"> <div class="securityUpdateWidget"> ! <h2 class="configuration"><TMPL_VAR NAME="Localize_Security_UpdateTitle"></h2> <form class="securitySwitch" action="<TMPL_VAR NAME="Configuration_Action">" method="post"> <input type="checkbox" id="securityUpdateCheck" name="update_check" <TMPL_IF NAME="Security_If_Update_Check">checked</TMPL_IF> /> --- 61,65 ---- <td class="settingsPanel" width="33%" valign="top"> <div class="securityUpdateWidget"> ! <h2 class="configuration"><TMPL_VAR NAME="Localize_Security_UpdateTitle">/<TMPL_VAR NAME="Localize_Security_StatsTitle"></h2> <form class="securitySwitch" action="<TMPL_VAR NAME="Configuration_Action">" method="post"> <input type="checkbox" id="securityUpdateCheck" name="update_check" <TMPL_IF NAME="Security_If_Update_Check">checked</TMPL_IF> /> *************** *** 75,79 **** <input type="submit" class="submit" name="privacy" value="<TMPL_VAR NAME="Localize_Apply">" /> <br /><br /> - <i><TMPL_VAR NAME="Localize_Security_ExplainUpdate"></i> </form> <hr /> --- 75,78 ---- *************** *** 126,129 **** --- 125,160 ---- </TMPL_IF> + <TMPL_IF NAME="If_Single_User"><TMPL_ELSE> + <hr /> + + <h2 class="configuration"><TMPL_VAR NAME="Localize_Configuration_CurrentSessions"></h2> + <TMPL_IF NAME="Configuration_If_Show_CurrentSessions"> + <table width="100%" summary=""> + <tr> + <th align="left"><TMPL_VAR NAME="Localize_Configuration_CurrentSessions_UserName"></th> + <th align="left"><TMPL_VAR NAME="Localize_Configuration_CurrentSessions_LastUsed"></th> + <th align="left"><TMPL_VAR NAME="Localize_Configuration_CurrentSessions_IdleTime"></th> + </tr> + + <TMPL_LOOP NAME="Configuration_Loop_CurrentSessions"> + <TMPL_IF NAME="__odd__"> + <tr class="rowOdd"> + <TMPL_ELSE> + <tr class="rowEven"> + </TMPL_IF> + <td aligh="left" ><TMPL_VAR NAME="CurrentSessions_UserName"></td> + <td align="left" ><TMPL_VAR NAME="CurrentSessions_LastUsed"></td> + <td align="right"><TMPL_VAR NAME="CurrentSessions_IdleTime"></td> + </tr> + </TMPL_LOOP> + + </table> + <br/> + </TMPL_IF> + + <form action="/administration" method="post"> + <input type="submit" class="submit" name="refresh_current_sessions" value="<TMPL_VAR NAME="Localize_Refresh">" /> + </form> + </TMPL_IF> </td> |