View of /branches/v1.5/toolbar.nokkaew.php
Parent Directory
|
Revision Log
Revision 2 -
(download)
(annotate)
Thu Sep 13 03:21:05 2007 UTC (5 years, 9 months ago) by andphe
File size: 2730 byte(s)
Thu Sep 13 03:21:05 2007 UTC (5 years, 9 months ago) by andphe
File size: 2730 byte(s)
! adding current 1.5.x files
<?php // NOKKAEW - is "Parrot" in thai name // Copyright (C) copyright 2006 MamboHub.com // All rights reserved. The NokKaew project is a extention hack and // component for the Mambo Open Server. It enables Mambo OS to handle multi // lingual sites especially in all dynamic contents which are stored in the // database. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. // // The "GNU General Public License" (GPL) is available at // http://www.gnu.org/copyleft/gpl.html // -------------------------------------------------------------------------------- // $Id: toolbar.nokkaew.php,v 1.3 2005/03/13 22:01:23 akede Exp $ // defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); global $mosConfig_lang; require_once( $mainframe->getPath( 'toolbar_html' ) ); require_once( $mainframe->getPath( 'toolbar_default' ) ); require_once( $mainframe->getPath( 'class' ) ); if( !defined( '_NOK_LANG_INCLUDED') ) { if (file_exists($mosConfig_absolute_path .'/components/com_nokkaew/language/'.$mosConfig_lang.'.php')) { require_once ($mosConfig_absolute_path .'/components/com_nokkaew/language/'.$mosConfig_lang.'.php'); } else { require_once ($mosConfig_absolute_path .'/components/com_nokkaew/language/english.php'); } define( "_NOK_LANG_INCLUDED", true ); } $act = mosGetParam ($_REQUEST, 'act', '' ); $nokkaewManager = new NokKaewManager( dirname( __FILE__ ) ); if( count($nokkaewManager->getActiveLanguages()) == 0 ) { $act = "config_component"; } switch ($act) { case "config_component": MENU_nokkaew::CONFIG_MENU(); break; case "config_elements": if ($task=="") { MENU_nokkaew::EDIT_MENU(); } else { MENU_nokkaew::DEFAULT_MENU(); } break; case "translate": if( $task=="edit" ) { MENU_nokkaew::TRANSLATE_MENU(); } else { MENU_nokkaew::TRANSLATION_OVERVIEW_MENU(); } break; default: MENU_nokkaew::DEFAULT_MENU(); break; } ?>
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

