diff options
author | vdigital <vdigital@piwigo.org> | 2008-05-23 22:38:14 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2008-05-23 22:38:14 +0000 |
commit | c55dbbc995e152af3f2c88662101b0643d2e171a (patch) | |
tree | 3862effd5384b7c39295ed6690c9ccafd1677e54 /BSF/plugins/language_switch | |
parent | 77fd1f51a3c5f5a52f72ef8a299fe368228e2285 (diff) |
Removed file/folder
git-svn-id: http://piwigo.org/svn/trunk@2358 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | BSF/plugins/language_switch/icons/cz_CZ.gif | bin | 903 -> 0 bytes | |||
-rw-r--r-- | BSF/plugins/language_switch/icons/de_DE.gif | bin | 899 -> 0 bytes | |||
-rw-r--r-- | BSF/plugins/language_switch/icons/en_UK.gif | bin | 1161 -> 0 bytes | |||
-rw-r--r-- | BSF/plugins/language_switch/icons/es_AR.gif | bin | 1166 -> 0 bytes | |||
-rw-r--r-- | BSF/plugins/language_switch/icons/es_ES.gif | bin | 1025 -> 0 bytes | |||
-rw-r--r-- | BSF/plugins/language_switch/icons/fr_FR.gif | bin | 236 -> 0 bytes | |||
-rw-r--r-- | BSF/plugins/language_switch/icons/hu_HU.gif | bin | 1033 -> 0 bytes | |||
-rw-r--r-- | BSF/plugins/language_switch/icons/index.php | 30 | ||||
-rw-r--r-- | BSF/plugins/language_switch/icons/it_IT.gif | bin | 959 -> 0 bytes | |||
-rw-r--r-- | BSF/plugins/language_switch/icons/nl_NL.gif | bin | 103 -> 0 bytes | |||
-rw-r--r-- | BSF/plugins/language_switch/icons/pl_PL.gif | bin | 156 -> 0 bytes | |||
-rw-r--r-- | BSF/plugins/language_switch/index.php | 30 | ||||
-rw-r--r-- | BSF/plugins/language_switch/language_switch.inc.php | 92 | ||||
-rw-r--r-- | BSF/plugins/language_switch/main.inc.php | 36 |
14 files changed, 0 insertions, 188 deletions
diff --git a/BSF/plugins/language_switch/icons/cz_CZ.gif b/BSF/plugins/language_switch/icons/cz_CZ.gif Binary files differdeleted file mode 100644 index 89686c417..000000000 --- a/BSF/plugins/language_switch/icons/cz_CZ.gif +++ /dev/null diff --git a/BSF/plugins/language_switch/icons/de_DE.gif b/BSF/plugins/language_switch/icons/de_DE.gif Binary files differdeleted file mode 100644 index 9b3009565..000000000 --- a/BSF/plugins/language_switch/icons/de_DE.gif +++ /dev/null diff --git a/BSF/plugins/language_switch/icons/en_UK.gif b/BSF/plugins/language_switch/icons/en_UK.gif Binary files differdeleted file mode 100644 index 51b20e3c1..000000000 --- a/BSF/plugins/language_switch/icons/en_UK.gif +++ /dev/null diff --git a/BSF/plugins/language_switch/icons/es_AR.gif b/BSF/plugins/language_switch/icons/es_AR.gif Binary files differdeleted file mode 100644 index 677979bc5..000000000 --- a/BSF/plugins/language_switch/icons/es_AR.gif +++ /dev/null diff --git a/BSF/plugins/language_switch/icons/es_ES.gif b/BSF/plugins/language_switch/icons/es_ES.gif Binary files differdeleted file mode 100644 index d0d5adbbb..000000000 --- a/BSF/plugins/language_switch/icons/es_ES.gif +++ /dev/null diff --git a/BSF/plugins/language_switch/icons/fr_FR.gif b/BSF/plugins/language_switch/icons/fr_FR.gif Binary files differdeleted file mode 100644 index 9080a66bf..000000000 --- a/BSF/plugins/language_switch/icons/fr_FR.gif +++ /dev/null diff --git a/BSF/plugins/language_switch/icons/hu_HU.gif b/BSF/plugins/language_switch/icons/hu_HU.gif Binary files differdeleted file mode 100644 index 4eb513589..000000000 --- a/BSF/plugins/language_switch/icons/hu_HU.gif +++ /dev/null diff --git a/BSF/plugins/language_switch/icons/index.php b/BSF/plugins/language_switch/icons/index.php deleted file mode 100644 index c15b15795..000000000 --- a/BSF/plugins/language_switch/icons/index.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -// +-----------------------------------------------------------------------+ -// | Piwigo - a PHP based picture gallery | -// +-----------------------------------------------------------------------+ -// | Copyright(C) 2008 Piwigo Team http://piwigo.org | -// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | -// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | -// +-----------------------------------------------------------------------+ -// | 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 | -// | | -// | 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. | -// +-----------------------------------------------------------------------+ - -// Recursive call -$url = '../'; -header( 'Request-URI: '.$url ); -header( 'Content-Location: '.$url ); -header( 'Location: '.$url ); -exit(); -?> diff --git a/BSF/plugins/language_switch/icons/it_IT.gif b/BSF/plugins/language_switch/icons/it_IT.gif Binary files differdeleted file mode 100644 index 0ee512d4c..000000000 --- a/BSF/plugins/language_switch/icons/it_IT.gif +++ /dev/null diff --git a/BSF/plugins/language_switch/icons/nl_NL.gif b/BSF/plugins/language_switch/icons/nl_NL.gif Binary files differdeleted file mode 100644 index 520e994b7..000000000 --- a/BSF/plugins/language_switch/icons/nl_NL.gif +++ /dev/null diff --git a/BSF/plugins/language_switch/icons/pl_PL.gif b/BSF/plugins/language_switch/icons/pl_PL.gif Binary files differdeleted file mode 100644 index 66f140606..000000000 --- a/BSF/plugins/language_switch/icons/pl_PL.gif +++ /dev/null diff --git a/BSF/plugins/language_switch/index.php b/BSF/plugins/language_switch/index.php deleted file mode 100644 index c15b15795..000000000 --- a/BSF/plugins/language_switch/index.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -// +-----------------------------------------------------------------------+ -// | Piwigo - a PHP based picture gallery | -// +-----------------------------------------------------------------------+ -// | Copyright(C) 2008 Piwigo Team http://piwigo.org | -// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | -// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | -// +-----------------------------------------------------------------------+ -// | 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 | -// | | -// | 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. | -// +-----------------------------------------------------------------------+ - -// Recursive call -$url = '../'; -header( 'Request-URI: '.$url ); -header( 'Content-Location: '.$url ); -header( 'Location: '.$url ); -exit(); -?> diff --git a/BSF/plugins/language_switch/language_switch.inc.php b/BSF/plugins/language_switch/language_switch.inc.php deleted file mode 100644 index baaa0375a..000000000 --- a/BSF/plugins/language_switch/language_switch.inc.php +++ /dev/null @@ -1,92 +0,0 @@ -<?php -// +-----------------------------------------------------------------------+ -// | Piwigo - a PHP based picture gallery | -// +-----------------------------------------------------------------------+ -// | Copyright(C) 2008 Piwigo Team http://piwigo.org | -// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | -// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | -// +-----------------------------------------------------------------------+ -// | 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 | -// | | -// | 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. | -// +-----------------------------------------------------------------------+ -function language_switch() -{ - global $user, $template, $conf, $lang; - if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } - $same = $user['language']; - if ( isset( $_GET['lang']) ) - { - if ( !empty($_GET['lang'] ) and - file_exists( PHPWG_ROOT_PATH.'language/' - . $_GET['lang'].'/common.lang.php') ) - { - if (is_a_guest() or is_generic()) - { - setcookie( 'pwg_lang_switch', $_GET['lang'], - time()+60*60*24*30, cookie_path() ); - } - else - { - $query = 'UPDATE '.USER_INFOS_TABLE.' - SET language = \''.$_GET['lang'].'\' - WHERE user_id = '.$user['id'].' - ;'; - pwg_query($query); - } - $user['language'] = $_GET['lang']; - } - } -// Users have $user['language'] -// Guest or generic members will use their cookied language ! - if ((is_a_guest() or is_generic()) - and isset( $_COOKIE['pwg_lang_switch'] ) ) - { - $user['language'] = $_COOKIE['pwg_lang_switch']; - } -// Reload language only if it isn't the same one - if ( $same !== $user['language']) - { - load_language('common.lang', '', $user['language']); - load_language('local.lang', '', $user['language']); - if (defined('IN_ADMIN') and IN_ADMIN) - { - load_language('admin.lang', '', $user['language']); - } - } -} -//if ( isset( $_GET['lang']) ) { redirect( make_index_url() ); } - -function Lang_flags() -{ - global $user, $template; - $available_lang = get_languages(); - foreach ( $available_lang as $code => $displayname ) - { - $qlc_url = add_url_params( make_index_url(), array( 'lang' => $code ) ); - $qlc_alt = ucwords( $displayname ); - $qlc_title = $qlc_alt; - $qlc_img = 'plugins/language_switch/icons/' - . $code . '.gif'; - - if ( $code !== $user['language'] and file_exists(PHPWG_ROOT_PATH.$qlc_img) ) - { - $template->concat( 'PLUGIN_INDEX_ACTIONS', - '<li><a href="' . $qlc_url . '" ><img src="' . get_root_url().$qlc_img . '" alt="' - . $qlc_alt . '" title="' - . $qlc_title . '" style="border: 1px solid #000000; ' - . ' margin: 0px 2px;" /></a></li>'); - } - } -} -?>
\ No newline at end of file diff --git a/BSF/plugins/language_switch/main.inc.php b/BSF/plugins/language_switch/main.inc.php deleted file mode 100644 index 0d3df1085..000000000 --- a/BSF/plugins/language_switch/main.inc.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php -// +-----------------------------------------------------------------------+ -// | Piwigo - a PHP based picture gallery | -// +-----------------------------------------------------------------------+ -// | Copyright(C) 2008 Piwigo Team http://piwigo.org | -// | Copyright(C) 2003-2008 Piwigo team http://phpwebgallery.net | -// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | -// +-----------------------------------------------------------------------+ -// | 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 | -// | | -// | 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. | -// +-----------------------------------------------------------------------+ - -/* -Plugin Name: Language Switch -Version: 1.8 -Description: Switch to another language from flags on your gallery home page. -Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=123 -Author: Piwigo team -Author URI: http://piwigo.org -*/ - -include_once(PHPWG_PLUGINS_PATH.'language_switch/language_switch.inc.php'); -add_event_handler('loading_lang', 'language_switch' ); -add_event_handler('loc_end_index', 'Lang_flags' ); -?>
\ No newline at end of file |