mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	use __invoke() when calling view
This commit is contained in:
		
							parent
							
								
									80f0499d1b
								
							
						
					
					
						commit
						d63b427822
					
				|  | @ -47,14 +47,7 @@ if(isset($_GET['userid']) && $_GET['userid']) { | |||
| $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); | ||||
| $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'seluser'=>$seluser, 'allusers'=>$users, 'allgroups'=>$groups, 'passwordstrength'=>$settings->_passwordStrength, 'passwordexpiration'=>$settings->_passwordExpiration, 'httproot'=>$settings->_httpRoot, 'enableuserimage'=>$settings->_enableUserImage, 'undeluserids'=>explode(',', $settings->_undelUserIds), 'workflowmode'=>$settings->_workflowMode, 'quota'=>$settings->_quota)); | ||||
| if($view) { | ||||
| 	if(isset($_GET['action']) && $_GET['action']) { | ||||
| 		if(method_exists($view, $_GET['action'])) { | ||||
| 			$view->{$_GET['action']}(); | ||||
| 			exit; | ||||
| 		} | ||||
| 	} | ||||
| 	$view->show(); | ||||
| 	exit; | ||||
| 	$view($_GET); | ||||
| } | ||||
| 
 | ||||
| ?>
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann