";
+
require_once (e_CORE."shortcodes/batch/admin_shortcodes.php");
+
$text .= $tp->parseTemplate("{ADMIN_LATEST}");
$text .= " | ";
$text .= $tp->parseTemplate("{ADMIN_STATUS}");
@@ -117,16 +123,18 @@ $text .= "
// TODO Could use a new _menu item instead.
$text .= "
-
+
Who's Online
-
-
-
-
+
+
+
+
+
+
@@ -144,11 +152,11 @@ $text .= "
foreach ($newsarray as $key=>$val)
{
$text .= "
- ".e107::getDateConvert()->convert_date($val['online_timestamp'],'short')." |
+ ".e107::getDateConvert()->convert_date($val['online_timestamp'],'%H:%M:%S')." |
".renderOnlineName($val['online_user_id'])." |
".e107::ipDecode($val['online_ip'])." |
- ".$tp->text_truncate($val['online_location'],50)." |
- ".$tp->text_truncate($val['online_agent'],20,'...')." |
+ ".$tp->text_truncate($val['online_location'],50,'...')." |
+ ".$tp->text_truncate(str_replace("/"," / ",$val['online_agent']),20,'...')." |
";
}
@@ -160,10 +168,10 @@ $text .= "
";
// --------------------- User Selected Menus -------------------
- if (varset($user_pref['core-infopanel-menus']))
+ if (varset($pref['core-infopanel-menus']))
{
- foreach ($user_pref['core-infopanel-menus'] as $val)
+ foreach ($pref['core-infopanel-menus'] as $val)
{
$id = $frm->name2id('core-infopanel_'.$val);
$text .= "
@@ -266,17 +274,21 @@ function render_infopanel_icons()
function render_infopanel_menu_options()
{
- global $user_pref;
+ if(!getperms('0'))
+ {
+ return;
+ }
+ global $pref;
$frm = e107::getSingleton('e_form');
$text = "";
$menu_qry = 'SELECT * FROM #menus WHERE menu_id!= 0 GROUP BY menu_name ORDER BY menu_name';
- $settings = varset($user_pref['core-infopanel-menus'],array());
+ $settings = varset($pref['core-infopanel-menus'],array());
if (e107::getDb()->db_Select_gen($menu_qry))
{
while ($row = e107::getDb()->db_Fetch())
{
- if(!is_numeric($row['menu_path']))
+ // if(!is_numeric($row['menu_path']))
{
$label = str_replace("_menu","",$row['menu_name']);
$path_to_menu = $row['menu_path'].$row['menu_name'];
|