diff --git a/html/modules/bulletin/images/friend.gif b/html/modules/bulletin/images/friend.gif deleted file mode 100644 index c42323b..0000000 Binary files a/html/modules/bulletin/images/friend.gif and /dev/null differ diff --git a/html/modules/bulletin/images/module_icon.svg b/html/modules/bulletin/images/module_icon.svg new file mode 100644 index 0000000..e63a04c --- /dev/null +++ b/html/modules/bulletin/images/module_icon.svg @@ -0,0 +1,7 @@ + diff --git a/html/modules/bulletin/images/print.gif b/html/modules/bulletin/images/print.gif deleted file mode 100644 index b883c38..0000000 Binary files a/html/modules/bulletin/images/print.gif and /dev/null differ diff --git a/html/modules/bulletin/images/topics/impresscms.gif b/html/modules/bulletin/images/topics/impresscms.gif deleted file mode 100644 index 7c81320..0000000 Binary files a/html/modules/bulletin/images/topics/impresscms.gif and /dev/null differ diff --git a/html/modules/bulletin/images/topics/xoops.gif b/html/modules/bulletin/images/topics/xoops.gif deleted file mode 100644 index dde9ca5..0000000 Binary files a/html/modules/bulletin/images/topics/xoops.gif and /dev/null differ diff --git a/xoops_trust_path/modules/bulletin/admin.php b/xoops_trust_path/modules/bulletin/admin.php index c0813cc..7dd24f4 100644 --- a/xoops_trust_path/modules/bulletin/admin.php +++ b/xoops_trust_path/modules/bulletin/admin.php @@ -21,7 +21,7 @@ $langmanpath = XOOPS_TRUST_PATH.'/libs/altsys/class/D3LanguageManager.class.php' ; if( ! file_exists( $langmanpath ) ) die( 'install the latest altsys' ) ; require_once( $langmanpath ) ; -$langman =& D3LanguageManager::getInstance() ; +$langman = D3LanguageManager::getInstance() ; if( ! empty( $_GET['lib'] ) ) { diff --git a/xoops_trust_path/modules/bulletin/admin/admin_menu.php b/xoops_trust_path/modules/bulletin/admin/admin_menu.php deleted file mode 100644 index b31d882..0000000 --- a/xoops_trust_path/modules/bulletin/admin/admin_menu.php +++ /dev/null @@ -1,47 +0,0 @@ - constant( $constpref.'_ADMENU_CONTENTSADMIN' ) , - 'link' => 'admin/index.php?page=contents' , - ) , - array( - 'title' => constant( $constpref.'_ADMENU_CATEGORYACCESS' ) , - 'link' => 'admin/index.php?page=category_access' , - ) , - array( - 'title' => constant( $constpref.'_ADMENU_IMPORT' ) , - 'link' => 'admin/index.php?page=import' , - ) , - array( - 'title' => constant( $constpref.'_ADMENU_TAGS' ) , - 'link' => 'admin/index.php?page=tags' , - ) , - array( - 'title' => constant( $constpref.'_ADMENU_EXTRAS' ) , - 'link' => 'admin/index.php?page=extras' , - ) , -) ; - -$adminmenu4altsys = array( - array( - 'title' => constant( $constpref.'_ADMENU_MYLANGADMIN' ) , - 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mylangadmin' , - ) , - array( - 'title' => constant( $constpref.'_ADMENU_MYTPLSADMIN' ) , - 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mytplsadmin' , - ) , - array( - 'title' => constant( $constpref.'_ADMENU_MYBLOCKSADMIN' ) , - 'link' => 'admin/index.php?mode=admin&lib=altsys&page=myblocksadmin' , - ) , - array( - 'title' => constant( $constpref.'_ADMENU_MYPREFERENCES' ) , - 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mypreferences' , - ) , -) ; - -?> \ No newline at end of file diff --git a/xoops_trust_path/modules/bulletin/admin/category_access.php b/xoops_trust_path/modules/bulletin/admin/category_access.php index 41d852b..3f20e6c 100644 --- a/xoops_trust_path/modules/bulletin/admin/category_access.php +++ b/xoops_trust_path/modules/bulletin/admin/category_access.php @@ -3,8 +3,8 @@ require_once dirname(dirname(__FILE__)).'/include/common_functions.php' ; require_once dirname(dirname(__FILE__)).'/include/gtickets.php' ; require_once dirname(dirname(__FILE__)).'/class/bulletinTopic.php' ; -$db =& Database::getInstance() ; - +//$db =& Database::getInstance() ; +$db = &XoopsDatabaseFactory::getDatabaseConnection(); /* * topic_access table clean up 2012-2-1 by Yoshis */ @@ -28,7 +28,7 @@ $sql = "SELECT MIN(topic_id) FROM ".$db->prefix($mydirname."_topics"); list( $topic_id ) = $db->fetchRow( $db->query( $sql ) ); if( empty( $topic_id ) ) { - redirect_header( XOOPS_URL."/modules/$mydirname/index.php?page=makecategory" , 5 , _MD_A_bulletin_ERR_CREATECATEGORYFIRST ) ; + redirect_header( XOOPS_URL."/modules/$mydirname/index.php?page=makecategory" , 5 , _MD_A_BULLETIN_ERR_CREATECATEGORYFIRST ) ; exit ; } else { header( "Location: ".XOOPS_URL."/modules/$mydirname/admin/index.php?page=category_access&topic_id=$topic_id" ) ; @@ -144,11 +144,11 @@ $group_trs .= "