[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/class.admin.php, 1.1.2.24
From: |
nomail |
Subject: |
[Phpgroupware-cvs] api/class.admin.php, 1.1.2.24 |
Date: |
Sun, 23 May 2004 05:06:49 -0000 |
Update of /api
Modified Files:
Branch: proposal-branch
class.admin.php
date: 2004/05/01 00:02:03; author: jengo; state: Exp; lines: +18 -11
Log Message:
Fixed view current users and view session data
=====================================================================
Index: api/class.admin.php
diff -u api/class.admin.php:1.1.2.23 api/class.admin.php:1.1.2.24
--- api/class.admin.php:1.1.2.23 Fri Apr 16 20:59:48 2004
+++ api/class.admin.php Sat May 1 00:02:03 2004
@@ -17,32 +17,38 @@
/* $Source$ */
$functions = array();
- $functions['start'] = array(
+ $functions['start'] = array
+ (
'type' => 'public',
'title' => 'Admin',
'abstract' => 'Admin page main screen'
);
- $functions['current_users'] = array(
+ $functions['current_users'] = array
+ (
'type' => 'public',
'title' => 'Current Users',
'abstract' => 'List of current sessions'
);
- $functions['kill_session'] = array(
+ $functions['kill_session'] = array
+ (
'type' => 'public',
'title' => 'Kill session',
'abstract' => 'Destroy another users session'
);
- $functions['view_session_data'] = array(
+ $functions['view_session_data'] = array
+ (
'type' => 'public',
'title' => 'View session data',
'abstract' => 'Debug function to show data stored in a
session',
- 'params' => array(
+ 'params' => array
+ (
'vsid' => array('type' => 'string', 'default' =>
REQUIRED, 'desc' => 'Session ID you want to view')
)
);
- $GLOBALS['docs']['api']['classes']['api_admin'] = array(
+ $GLOBALS['docs']['api']['classes']['api_admin'] = array
+ (
'abstract' => 'General admin',
'functions' => $functions
);
@@ -94,13 +100,14 @@
// If you want to see this data, comment out the
follow. I did this becuase at times this data was really way too big
// and looked like total shit in the browser. (jengo)
$data['serialized_classes'] = array('removed due to
size');
- /*
+
ob_start();
print_r($data);
$result_data = ob_get_contents();
ob_end_clean();
- */
- $result = array(
+
+ $result = array
+ (
'session_data' => $result_data,
'action_type' => 'view_session_data'
);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/class.admin.php, 1.1.2.24,
nomail <=