Changeset 737 for branches/Ver3.0
- Timestamp:
- May 9, 2011, 3:34:00 PM (14 years ago)
- Location:
- branches/Ver3.0/xpressme_integration_kit
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/admin/mymenu.php
r170 r737 1 1 <?php 2 if ( preg_match ( "/^XOOPS Cube/" , XOOPS_VERSION ) ) 3 { $modversion['image'] = "files/wakulogoxc.png"; } 4 else if ( preg_match ( "/^ImpressCMS/" , XOOPS_VERSION ) ) 5 { $modversion['image'] = "files/wakulogoic.png"; } 6 else 7 { $modversion['image'] = "files/wakulogo.png"; } 2 8 3 9 if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ; 4 10 5 11 if( empty( $mydirname ) ) $mydirname = basename(dirname(dirname(__FILE__))) ; 12 13 // Detect Altsys 14 // Not Active ALTSYS => $active_altsys = false; 15 // Active ALTSYS => $active_altsys = true; 16 $module_handler =& xoops_gethandler('module'); 17 $criteria = new CriteriaCompo(); 18 $criteria->add(new Criteria('dirname','altsys')); 19 $criteria->add(new Criteria('isactive', 1)); 20 $altsys_mod = $module_handler->getObjects($criteria); 21 if(empty($altsys_mod)) $active_altsys = false; else $active_altsys = true; 22 6 23 7 24 if( ! defined( 'XOOPS_ORETEKI' ) ) { … … 22 39 include( './menu.php' ) ; 23 40 24 // array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => '../system/admin.php?fct=preferences&op=showmod&mod=' . $module->getvar('mid') ) ) ;25 41 $menuitem_dirname = $module->getvar('dirname') ; 26 42 27 if( defined( 'XOOPS_TRUST_PATH' ) ) { 28 29 // with XOOPS_TRUST_PATH and altsys 30 31 if( file_exists( XOOPS_TRUST_PATH.'/libs/altsys/mytplsadmin.php' ) ) { 32 // mytplsadmin (TODO check if this module has tplfile) 33 $title = defined( '_MD_A_MYMENU_MYTPLSADMIN' ) ? _MD_A_MYMENU_MYTPLSADMIN : 'tplsadmin' ; 34 array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mytplsadmin' ) ) ; 35 } 36 37 if( file_exists( XOOPS_TRUST_PATH.'/libs/altsys/myblocksadmin.php' ) ) { 38 // myblocksadmin 39 $title = defined( '_MD_A_MYMENU_MYBLOCKSADMIN' ) ? _MD_A_MYMENU_MYBLOCKSADMIN : 'blocksadmin' ; 40 array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=myblocksadmin' ) ) ; 41 } 42 43 if( file_exists( XOOPS_TRUST_PATH.'/libs/altsys/mylangadmin.php' ) ) { 44 // mylangadmin 45 $title = defined( '_MD_A_MYMENU_MYLANGADMIN' ) ? _MD_A_MYMENU_MYLANGADMIN : 'langadmin' ; 46 array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mylangadmin' ) ) ; 47 } 48 49 // preferences 50 $config_handler =& xoops_gethandler('config'); 51 if( count( $config_handler->getConfigs( new Criteria( 'conf_modid' , $module->mid() ) ) ) > 0 ) { 52 if( file_exists( XOOPS_TRUST_PATH.'/libs/altsys/mypreferences.php' ) ) { 53 // mypreferences 54 $title = defined( '_MD_A_MYMENU_MYPREFERENCES' ) ? _MD_A_MYMENU_MYPREFERENCES : _PREFERENCES ; 55 array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mypreferences' ) ) ; 56 } else if( defined( 'XOOPS_CUBE_LEGACY' ) ) { 57 // Cube Legacy without altsys 58 array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => XOOPS_URL.'/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $module->getvar('mid') ) ) ; 59 } else { 60 // system->preferences 61 array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$module->mid() ) ) ; 62 } 63 } 64 43 // mytplsadmin (TODO check if this module has tplfile) 44 if( $active_altsys ) { 45 $title = defined( '_MD_A_MYMENU_MYTPLSADMIN' ) ? _MD_A_MYMENU_MYTPLSADMIN : 'tplsadmin' ; 46 array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mytplsadmin' ) ) ; 47 } 48 49 // myblocksadmin 50 $title = defined( '_MD_A_MYMENU_MYBLOCKSADMIN' ) ? _MD_A_MYMENU_MYBLOCKSADMIN : 'blocksadmin' ; 51 if( $active_altsys ){ 52 // mypreferences 53 array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=myblocksadmin' ) ) ; 65 54 } else if( defined( 'XOOPS_CUBE_LEGACY' ) ) { 66 55 // Cube Legacy without altsys 67 if( $module->getvar('hasconfig') ) array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => XOOPS_URL.'/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $module->getvar('mid') ) ) ; 56 array_push( $adminmenu , array( 'title' => $title , 'link' => XOOPS_URL.'/modules/legacy/admin/index.php?action=BlockList') ) ; 57 } else if ( preg_match ( "/^ImpressCMS/" , XOOPS_VERSION ) ){ 58 // ImpressCMS 59 array_push( $adminmenu , array( 'title' => $title , 'link' => XOOPS_URL.'/modules/system/admin.php?fct=blocksadmin&filtersel=mid&filtersel2='.$module->getvar('mid') ) ) ; 68 60 } else { 69 // conventinal X2 70 if( $module->getvar('hasconfig') ) array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $module->getvar('mid') ) ) ; 61 array_push( $adminmenu , array( 'title' => $title , 'link' => XOOPS_URL.'/modules/system/admin.php?fct=blocksadmin&op=list&filter=1&selgen='.$module->getvar('mid').'&selmod=-2&selgrp=-1&selvis=-1' ) ) ; 71 62 } 72 63 64 // mylangadmin 65 if( $active_altsys ){ 66 $title = defined( '_MD_A_MYMENU_MYLANGADMIN' ) ? _MD_A_MYMENU_MYLANGADMIN : 'langadmin' ; 67 array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mylangadmin' ) ) ; 68 } 69 70 // preferences 71 if( $module->getvar('hasconfig') ){ 72 if( $active_altsys ){ 73 // mypreferences 74 $title = defined( '_MD_A_MYMENU_MYPREFERENCES' ) ? _MD_A_MYMENU_MYPREFERENCES : _PREFERENCES ; 75 array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mypreferences' ) ) ; 76 } else if( defined( 'XOOPS_CUBE_LEGACY' ) ) { 77 // Cube Legacy without altsys 78 array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => XOOPS_URL.'/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $module->getvar('mid') ) ) ; 79 } else { 80 // system->preferences 81 array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$module->mid() ) ) ; 82 } 83 } 84 85 // hilight 73 86 $mymenu_uri = empty( $mymenu_fake_uri ) ? $_SERVER['REQUEST_URI'] : $mymenu_fake_uri ; 74 87 $mymenu_link = substr( strstr( $mymenu_uri , '/admin/' ) , 1 ) ; 75 88 76 // hilight77 89 foreach( array_keys( $adminmenu ) as $i ) { 78 90 if( $mymenu_link == $adminmenu[$i]['link'] ) { -
branches/Ver3.0/xpressme_integration_kit/language/english/admin.php
r598 r737 5 5 // altsys 6 6 define('_MD_A_MYMENU_MYTPLSADMIN','templates'); 7 define('_MD_A_MYMENU_MYBLOCKSADMIN','blocks /permissions');7 define('_MD_A_MYMENU_MYBLOCKSADMIN','blocks'); 8 8 define('_MD_A_MYMENU_MYLANGADMIN','languages'); 9 9 define('_MD_A_MYMENU_MYPREFERENCES','general'); -
branches/Ver3.0/xpressme_integration_kit/language/ja_utf8/admin.php
r598 r737 5 5 // altsys 6 6 define('_MD_A_MYMENU_MYTPLSADMIN','テンプレート管理'); 7 define('_MD_A_MYMENU_MYBLOCKSADMIN','ブロック管理 /アクセス権限');7 define('_MD_A_MYMENU_MYBLOCKSADMIN','ブロック管理'); 8 8 define('_MD_A_MYMENU_MYLANGADMIN','言語定数管理'); 9 9 define('_MD_A_MYMENU_MYPREFERENCES','一般設定'); -
branches/Ver3.0/xpressme_integration_kit/language/japanese/admin.php
r598 r737 5 5 // altsys 6 6 define('_MD_A_MYMENU_MYTPLSADMIN','¥Æ¥ó¥×¥ì¡¼¥È´ÉÍý'); 7 define('_MD_A_MYMENU_MYBLOCKSADMIN','¥Ö¥í¥Ã¥¯´ÉÍý /¥¢¥¯¥»¥¹¸¢¸Â');7 define('_MD_A_MYMENU_MYBLOCKSADMIN','¥Ö¥í¥Ã¥¯´ÉÍý'); 8 8 define('_MD_A_MYMENU_MYLANGADMIN','¸À¸ìÄê¿ô´ÉÍý'); 9 9 define('_MD_A_MYMENU_MYPREFERENCES','°ìÈÌÀßÄê'); -
branches/Ver3.0/xpressme_integration_kit/language/pt-br_utf8/admin.php
r598 r737 5 5 // altsys 6 6 define('_MD_A_MYMENU_MYTPLSADMIN','Templates'); 7 define('_MD_A_MYMENU_MYBLOCKSADMIN','Blocos /permissões');7 define('_MD_A_MYMENU_MYBLOCKSADMIN','Blocos'); 8 8 define('_MD_A_MYMENU_MYLANGADMIN','Idiomas'); 9 9 define('_MD_A_MYMENU_MYPREFERENCES','Preferências');
Note: See TracChangeset
for help on using the changeset viewer.