aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/include/lang.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@strangeplanet.fr>2015-07-24 22:44:39 +0200
committermistic100 <mistic@strangeplanet.fr>2015-07-26 19:11:36 +0200
commit4e71ba9d3ea40cd2d817965e5eed4a2fe1b876b3 (patch)
treeaf7f5291540806e5fde21db1d98d590579549055 /plugins/LocalFilesEditor/include/lang.inc.php
parent32138f1fbd7637dffaaad0c8ca677e43a0d13831 (diff)
Remove core plugins from core repository
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