[Ampoliros-cvs] ampoliros/www/root security.php,1.6,1.7
Brought to you by:
burzmali
|
From: <bur...@us...> - 2003-05-19 14:36:29
|
Update of /cvsroot/ampoliros/ampoliros/www/root
In directory sc8-pr-cvs1:/tmp/cvs-serv4779/www/root
Modified Files:
security.php
Log Message:
SECURITY:
- Added logged root and users sessions list in security administration
(security.php). (wuh)
NEW FEATURES:
- Added semaphores feature (semaphores.library). (wuh)
Index: security.php
===================================================================
RCS file: /cvsroot/ampoliros/ampoliros/www/root/security.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** security.php 17 Feb 2003 10:33:26 -0000 1.6
--- security.php 19 May 2003 14:36:25 -0000 1.7
***************
*** 212,220 ****
//$tabs[0]['label'] = $gLocale->GetStr( 'currentactivities.tab' );
$tabs[0]['label'] = $gLocale->GetStr( 'accesslog.tab' );
! $tabs[1]['label'] = $gLocale->GetStr( 'securitycheck.tab' );
$amp_security = new AmpolirosSecurityHandler();
$security_check = $amp_security->SecurityCheck();
$tmp_key = array_search( '', $security_check['unsecurewebservicesaccounts'] );
if ( strlen( $tmp_key ) ) $security_check['unsecurewebservicesaccounts'][$tmp_key] = 'Anonymous';
--- 212,240 ----
//$tabs[0]['label'] = $gLocale->GetStr( 'currentactivities.tab' );
$tabs[0]['label'] = $gLocale->GetStr( 'accesslog.tab' );
! $tabs[1]['label'] = $gLocale->GetStr( 'loggedusers.tab' );
! $tabs[2]['label'] = $gLocale->GetStr( 'securitycheck.tab' );
$amp_security = new AmpolirosSecurityHandler();
$security_check = $amp_security->SecurityCheck();
+ $logged_users = $amp_security->GetLoggedSessions();
+
+ $root_sessions = $users_sessions = array();
+
+ foreach ( $logged_users['root'] as $root_session )
+ {
+ $root_sessions[$root_session] = $root_session;
+ }
+
+ foreach ( $logged_users['sites'] as $user => $sessions )
+ {
+ $users_sessions[$user] = $user;
+
+ foreach ( $sessions as $session )
+ {
+ $users_sessions[$user.'-'.$session] = '- '.$session;
+ }
+ }
+
$tmp_key = array_search( '', $security_check['unsecurewebservicesaccounts'] );
if ( strlen( $tmp_key ) ) $security_check['unsecurewebservicesaccounts'][$tmp_key] = 'Anonymous';
***************
*** 274,277 ****
--- 294,333 ----
</children>
+ </vertgroup>
+
+ <vertgroup>
+ <children>
+
+ <label>
+ <args>
+ <label type="encoded">'.urlencode( $gLocale->GetStr( 'root_sessions.label' ) ).'</label>
+ <bold>true</bold>
+ </args>
+ </label>
+
+ <listbox><name>rootsessions</name>
+ <args>
+ <size>5</size>
+ <elements type="array">'.huixml_encode( $root_sessions ).'</elements>
+ </args>
+ </listbox>';
+
+ $gXml_def .=
+ ' <label>
+ <args>
+ <label type="encoded">'.urlencode( $gLocale->GetStr( 'users_sessions.label' ) ).'</label>
+ <bold>true</bold>
+ </args>
+ </label>
+
+ <listbox><name>userssessions</name>
+ <args>
+ <size>15</size>
+ <elements type="array">'.huixml_encode( $users_sessions ).'</elements>
+ </args>
+ </listbox>';
+
+ $gXml_def .=
+ ' </children>
</vertgroup>
|