From: <dj...@us...> - 2012-01-24 20:59:22
|
Revision: 8807 http://xoops.svn.sourceforge.net/xoops/?rev=8807&view=rev Author: djculex Date: 2012-01-24 20:59:14 +0000 (Tue, 24 Jan 2012) Log Message: ----------- Added Paths: ----------- XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php Added: XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php (rev 0) +++ XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php 2012-01-24 20:59:14 UTC (rev 8807) @@ -0,0 +1,68 @@ +<?php +/** +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/admin/div_useradmin.php $ +* @Last committed: $Revision: 8707 $ +* @Last changed by: $Author: djculex $ +* @Last changed date: $Date: 2012-01-13 09:40:50 +0100 (fr, 13 jan 2012) $ +* @ID: $Id: div_useradmin.php 8707 2012-01-13 08:40:50Z djculex $ +**/ + +require_once 'admin_header.php'; +global $xoopsDB, $xoTheme, $xoopsLogger ; +$xoopsLogger->activated = false; +include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); +include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); + +$Tpl = new XoopsTpl(); +$admin = new SmallworldAdmin(); + +$allusers_inspect = $admin->getAllUsers('yes'); + if (!empty($allusers_inspect)) { + foreach ($allusers_inspect as $data) { + $ai['id'] = $data['id']; + $ai['userid'] = $data['userid']; + $ai['username'] = $data['username']; + $ai['realname'] = $data['realname']; + $ai['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); + $ai['ip'] = $data['ip']; + $ai['complaint'] = $data['complaint']; + $ai['inspect_start'] = $data['inspect_start']; + $ai['inspect_stop'] = $data['inspect_stop']; + $ai['userinspect_timetotal'] = ($data['inspect_start'] + $data['inspect_stop'])-time(); + $Tpl->append('allusersinspect', $ai); + } + } + $Tpl->assign('allusersinspectcounter',count($ai)); + +$allusers_noinspect = $admin->getAllUsers('no'); + if (!empty($allusers_noinspect)) { + foreach ($allusers_noinspect as $data) { + $ani['id'] = $data['id']; + $ani['userid'] = $data['userid']; + $ani['username'] = $data['username']; + $ani['realname'] = $data['realname']; + $ani['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']); + $ani['ip'] = $data['ip']; + $ani['complaint'] = $data['complaint']; + $ani['inspect_start'] = ''; + $ani['inspect_stop'] = ''; + $ani['userinspect_timetotal'] = ''; + $Tpl->append('allusersnoinspect', $ani); + } + } + $Tpl->assign('allusersnoinspectcounter',count($ani)); + +$Tpl->display(XOOPS_ROOT_PATH .'/modules/smallworld/templates/smallworld_alluserstodiv.html'); +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |