aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/include/lang.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@strangeplanet.fr>2015-07-26 19:19:19 +0200
committermistic100 <mistic@strangeplanet.fr>2015-07-26 19:19:19 +0200
commitf79d74338e91b008b1f500f0a943c41ec32ec848 (patch)
tree750320d7de8beaf9bd3f21933e71e4fee857c6da /plugins/LocalFilesEditor/include/lang.inc.php
parentcc27a535724e0602b73aae0d5ece6b60fb9554dc (diff)
parent22381e829e0ce2a4a4cbb1420f5ecc2c43be9292 (diff)
Merge branch 'feature/hello-github' into develop
Diffstat (limited to 'plugins/LocalFilesEditor/include/lang.inc.php')
-rw-r--r--plugins/LocalFilesEditor/include/lang.inc.php69
1 files changed, 0 insertions, 69 deletions
diff --git a/plugins/LocalFilesEditor/include/lang.inc.php b/plugins/LocalFilesEditor/include/lang.inc.php
deleted file mode 100644
index e32a26c49..000000000
--- a/plugins/LocalFilesEditor/include/lang.inc.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
-
-$languages = get_languages();
-
-if (isset($_POST['edit']))
-{
- $_POST['language'] = $_POST['language_select'];
-}
-
-if (isset($_POST['language']))
-{
- $page['language'] = $_POST['language'];
-}
-
-if (!isset($page['language']) or !in_array($page['language'], array_keys($languages)))
-{
- $page['language'] = get_default_language();
-}
-
-$template->assign('language', $page['language']);
-
-$edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'language/'.$page['language'].'.lang.php';;
-
-if (file_exists($edited_file))
-{
- $content_file = file_get_contents($edited_file);
-}
-else
-{
- $content_file = "<?php\n\n/* ".l10n('locfiledit_newfile')." */\n\n\n\n\n?>";
-}
-
-$selected = 0;
-foreach (get_languages() as $language_code => $language_name)
-{
- $file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'language/'.$language_code.'.lang.php';
-
- $options[$language_code] = (file_exists($file) ? '&#x2714;' : '&#x2718;').' '.$language_name;
-
- if ($page['language'] == $language_code)
- {
- $selected = $language_code;
- $template->assign('show_default', array(
- array(
- 'URL' => LOCALEDIT_PATH.'show_default.php?file=language/'.$language_code.'/common.lang.php',
- 'FILE' => 'common.lang.php'
- ),
- array(
- 'URL' => LOCALEDIT_PATH.'show_default.php?file=language/'.$language_code.'/admin.lang.php',
- 'FILE' => 'admin.lang.php'
- )
- )
- );
- }
-}
-
-$template->assign(
- 'css_lang_tpl',
- array(
- 'SELECT_NAME' => 'language_select',
- 'OPTIONS' => $options,
- 'SELECTED' => $selected
- )
- );
-
-$codemirror_mode = 'application/x-httpd-php';
-
-?> \ No newline at end of file