Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_official / html / modules / groups [ view in CVS ]


Deprecated: Function gmstrftime() is deprecated in /home/mikespub/www/list.php on line 509
Date Directory [filter] File(s) [view] Author [filter]
07 Aug 2002 04:10:00postnuke_official/html/modules/groupspnadmin.php,1.18,1.19st.ego
 changed viewallgroups and viewgroup calls to userapi getall and get, including pnModAPILoad calls.

Update of /home/cvsroot/postnuke_official/html/modules/groups
In directory ns7.hostnuke.net:/tmp/cvs-serv25275/html/modules/groups

Modified Files:
	pnadmin.php 
Log Message:
changed viewallgroups and viewgroup calls to userapi getall and get, including pnModAPILoad calls.


Index: pnadmin.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/groups/pnadmin.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** pnadmin.php	8 Jul 2002 01:50:15 -0000	1.18
--- pnadmin.php	7 Aug 2002 04:09:58 -0000	1.19
***************
*** 84,94 ****
      $output->SetInputMode(_PNH_PARSEINPUT);
  
!     if (!pnModAPILoad('groups', 'admin')) {
! 	pnSessionSetVar('errormsg', _APILOADFAILED);
! 	return $output->GetOutput();
      }
      $groups = pnModAPIFunc('groups',
! 			   'admin',
! 			   'viewallgroups');
  
      $tableHead = array(_GROUP, _OPTION);
--- 84,94 ----
      $output->SetInputMode(_PNH_PARSEINPUT);
  
!     if (!pnModAPILoad('groups', 'user')) {
! 		pnSessionSetVar('errormsg', _APILOADFAILED);
! 		return $output->GetOutput();
      }
      $groups = pnModAPIFunc('groups',
! 			   'user',
! 			   'getall');
  
      $tableHead = array(_GROUP, _OPTION);
***************
*** 167,177 ****
      $output->TableStart('', $tableHead, 1);
  
!     if (!pnModAPILoad('groups', 'admin')) {
  	pnSessionSetVar('errormsg', _APILOADFAILED);
  	return $output->GetOutput();
      }
      $users = pnModAPIFunc('groups',
! 			  'admin',
! 			  'viewgroup', array('gid' => $gid));
      if ($users == false) {
  	$output->Text('No users in this group');
--- 167,177 ----
      $output->TableStart('', $tableHead, 1);
  
!     if (!pnModAPILoad('groups', 'user')) {
  	pnSessionSetVar('errormsg', _APILOADFAILED);
  	return $output->GetOutput();
      }
      $users = pnModAPIFunc('groups',
! 			  'user',
! 			  'get', array('gid' => $gid));
      if ($users == false) {
  	$output->Text('No users in this group');
***************
*** 181,202 ****
      }
      foreach($users as $user) {
! 	$actions = array();
! 
!         $output->SetOutputMode(_PNH_RETURNOUTPUT);
! 	if (pnSecAuthAction(0, 'Groups::', "::", ACCESS_DELETE)) {
! 	    $actions[] = $output->URL(pnModURL('groups',
! 					       'admin',
! 					       'deleteuser', array('gid'    => $gid,
! 								   'uid'    => $user['uid'],
! 								   'authid' => pnSecGenAuthKey())), _DELETE);
! 	}
!    	$output->SetOutputMode(_PNH_KEEPOUTPUT);
! 
! 	$actions = join(' | ', $actions);
!  	$row = array(pnVarPrepForDisplay($user['uname']), $actions);
! 
! 	$output->SetInputMode(_PNH_VERBATIMINPUT);
! 	$output->TableAddRow($row);
! 	$output->SetInputMode(_PNH_PARSEINPUT);
      }
      $output->TableEnd();
--- 181,202 ----
      }
      foreach($users as $user) {
! 		$actions = array();
! 	
! 			$output->SetOutputMode(_PNH_RETURNOUTPUT);
! 		if (pnSecAuthAction(0, 'Groups::', "::", ACCESS_DELETE)) {
! 			$actions[] = $output->URL(pnModURL('groups',
! 							   'admin',
! 							   'deleteuser', array('gid'    => $gid,
! 									   'uid'    => $user['uid'],
! 									   'authid' => pnSecGenAuthKey())), _DELETE);
! 		}
! 		$output->SetOutputMode(_PNH_KEEPOUTPUT);
! 	
! 		$actions = join(' | ', $actions);
! 		$row = array(pnVarPrepForDisplay($user['uname']), $actions);
! 	
! 		$output->SetInputMode(_PNH_VERBATIMINPUT);
! 		$output->TableAddRow($row);
! 		$output->SetInputMode(_PNH_PARSEINPUT);
      }
      $output->TableEnd();


Directory filter : [ all ] / postnuke_official / html / modules / groups [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3