/products/photocrati_nextgen/modules/security/module.security.php

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