M_Security

The NextGEN Gallery M Security class.

Defined (1)

The class is defined in the following location(s).

/products/photocrati_nextgen/modules/security/module.security.php  
  1. class M_Security extends C_Base_Module 
  2. function define($id = 'pope-module',  
  3. $name = 'Pope Module',  
  4. $description = '',  
  5. $version = '',  
  6. $uri = '',  
  7. $author = '',  
  8. $author_uri = '',  
  9. $context = FALSE) 
  10. parent::define( 
  11. 'photocrati-security',  
  12. 'Security',  
  13. 'Provides utilities to check for credentials and security',  
  14. '0.3',  
  15. 'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',  
  16. 'Imagely',  
  17. 'https://www.imagely.com' 
  18. ); 
  19.  
  20. if (isset($GLOBALS['_COOKIE_NG_COPY'])) { 
  21. $_COOKIE = $GLOBALS['_COOKIE_NG_COPY']; 
  22.  
  23. function _register_adapters() 
  24. $this->get_registry()->add_adapter('I_Component_Factory', 'A_Security_Factory'); 
  25.  
  26. function _register_utilities() 
  27. $this->get_registry()->add_utility('I_Security_Manager', 'C_WordPress_Security_Manager'); 
  28.  
  29. function get_type_list() 
  30. return array( 
  31. 'A_Security_Factory' => 'adapter.security_factory.php',  
  32. 'C_Security_Actor' => 'class.security_actor.php',  
  33. 'C_Security_Manager' => 'class.security_manager.php',  
  34. 'C_Security_Token' => 'class.security_token.php',  
  35. 'C_Wordpress_Security_Actor' => 'class.wordpress_security_actor.php',  
  36. 'C_Wordpress_Security_Manager' => 'class.wordpress_security_manager.php',  
  37. 'C_Wordpress_Security_Token' => 'class.wordpress_security_token.php' 
  38. ); 
  39.