Changeset 16015
- Timestamp:
- Jun 24, 2012, 9:20:19 PM (12 years ago)
- Location:
- extensions/UserStat
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserStat/main.inc.php
r15374 r16015 68 68 69 69 //UserStat loaded and active only if in admin page 70 if( basename($_SERVER["PHP_SELF"])=='admin.php')70 if(defined('IN_ADMIN') && !defined('AJAX_CALL')) 71 71 { 72 72 include_once("userstat_aim.class.inc.php"); -
extensions/UserStat/userstat_aim.class.inc.php
r10344 r16015 17 17 18 18 include_once('userstat_root.class.inc.php'); 19 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCCss.class.inc.php');20 19 21 20 class UserStat_AIM extends UserStat_root … … 34 33 add_event_handler('get_admin_plugin_menu_links', array(&$this, 'pluginAdminMenu') ); 35 34 } 36 37 38 35 } // UserStat_Plugin class 39 36 -
extensions/UserStat/userstat_aip.class.inc.php
r15374 r16015 44 44 parent::__destruct(); 45 45 } 46 47 /*48 initialize events call for the plugin49 */50 function initEvents()51 {52 add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS'));53 }54 55 46 56 47 -
extensions/UserStat/userstat_root.class.inc.php
r10344 r16015 22 22 23 23 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); 24 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCCss.class.inc.php');25 24 26 25 class UserStat_root extends CommonPlugin 27 26 { 28 protected $css; //the css object29 30 27 public function __construct($prefixeTable, $filelocation) 31 28 { … … 33 30 $this->setPluginNameFiles("userstat"); 34 31 parent::__construct($prefixeTable, $filelocation); 35 $this->css = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles().".css");36 }37 38 public function __destruct()39 {40 unset($this->css);41 parent::__destruct();42 32 } 43 33 … … 46 36 --------------------------------------------------------------------------- */ 47 37 48 /* this function initialize var $config with default values */ 49 /* 50 initialization of config properties 51 */ 52 function initConfig() 38 public function loadCSS() 53 39 { 54 $this->config=array(55 );40 parent::loadCSS(); 41 GPCCore::addHeaderCSS('userstat.css', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles().".css"); 56 42 } 57 58 43 } 59 44
Note: See TracChangeset
for help on using the changeset viewer.