> -------------------------------------------------------------------------------- :: HISTORY | release | date | | 0.1.0 | 2011/01/07 | * start to coding | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | :: TO DO -------------------------------------------------------------------------------- :: NFO HGram_root : common classe for admin and public classes HGram_AIM : classe to manage plugin integration into plugin menu HGram_AIP : classe to manage plugin admin pages HGram_PIP : classe to manage plugin public pages -------------------------------------------------------------------------------- */ // pour faciliter le debug :o) //ini_set('error_reporting', E_ALL); //ini_set('display_errors', true); if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); define('HGRAM_DIR' , basename(dirname(__FILE__))); define('HGRAM_PATH' , PHPWG_PLUGINS_PATH . HGRAM_DIR . '/'); include_once('hgram_version.inc.php'); // => Don't forget to update this file !! global $prefixeTable; if(defined('IN_ADMIN')) { // HGram admin interface loaded and active only if in admin page include_once("hgram_aim.class.inc.php"); $obj=new HGram_AIM($prefixeTable, __FILE__); $obj->initEvents(); set_plugin_data($plugin['id'], $obj); } else { // HGram public interface loaded and active only if in public page include_once("hgram_pip.class.inc.php"); $obj=new HGram_PIP($prefixeTable, __FILE__); set_plugin_data($plugin['id'], $obj); } ?>