diff --git a/plugins/AdminTools/admin.php b/plugins/AdminTools/admin.php deleted file mode 100644 index ecd52115d..000000000 --- a/plugins/AdminTools/admin.php +++ /dev/null @@ -1,23 +0,0 @@ - isset($_POST['default_open']), - 'closed_position' => $_POST['closed_position'], - 'public_quick_edit' => isset($_POST['public_quick_edit']), - ); - - conf_update_param('AdminTools', $conf['AdminTools']); - $page['infos'][] = l10n('Information data registered in database'); -} - - -$template->assign(array( - 'AdminTools' => $conf['AdminTools'], - )); - - -$template->set_filename('admintools_content', realpath(ADMINTOOLS_PATH . 'template/admin.tpl')); -$template->assign_var_from_handle('ADMIN_CONTENT', 'admintools_content'); diff --git a/plugins/AdminTools/include/MultiView.class.php b/plugins/AdminTools/include/MultiView.class.php deleted file mode 100644 index 56240b811..000000000 --- a/plugins/AdminTools/include/MultiView.class.php +++ /dev/null @@ -1,338 +0,0 @@ -data = array_merge( - array( - 'view_as' => 0, - 'theme' => '', - 'lang' => '', - 'show_queries' => $conf['show_queries'], - 'debug_l10n' => $conf['debug_l10n'], - 'debug_template' => $conf['debug_template'], - 'template_combine_files' => $conf['template_combine_files'], - 'no_history' => false, - ), - pwg_get_session_var('multiview', array()) - ); - - $this->data_url_params = array_keys($this->data); - $this->data_url_params = array_map(create_function('$d', 'return "ato_".$d;'), $this->data_url_params); - } - - /** - * @return bool - */ - public function is_admin() - { - return $this->is_admin; - } - - /** - * @return array - */ - public function get_data() - { - return $this->data; - } - - /** - * @return array - */ - public function get_user() - { - return $this->user; - } - - /** - * Save $data in session - */ - private function save() - { - pwg_set_session_var('multiview', $this->data); - } - - /** - * Returns the current url minus MultiView params - * - * @param bool $with_amp - adds ? or & at the end of the url - * @return string - */ - public function get_clean_url($with_amp=false) - { - if (script_basename() == 'picture') - { - $url = duplicate_picture_url(array(), $this->data_url_params); - } - else if (script_basename() == 'index') - { - $url = duplicate_index_url(array(), $this->data_url_params); - } - else - { - $url = get_query_string_diff($this->data_url_params); - } - - if ($with_amp) - { - $url.= strpos($url, '?')!==false ? '&' : '?'; - } - - return $url; - } - - /** - * Returns the current url minus MultiView params - * - * @param bool $with_amp - adds ? or & at the end of the url - * @return string - */ - public function get_clean_admin_url($with_amp=false) - { - $url = PHPWG_ROOT_PATH.'admin.php'; - - $get = $_GET; - unset($get['page'], $get['section'], $get['tag']); - if (count($get) == 0 and !empty($_SERVER['QUERY_STRING'])) - { - $url.= '?' . str_replace('&', '&', $_SERVER['QUERY_STRING']); - } - - if ($with_amp) - { - $url.= strpos($url, '?')!==false ? '&' : '?'; - } - - return $url; - } - - /** - * Triggered on "user_init", change current view depending of URL params. - */ - public function user_init() - { - global $user, $conf; - - $this->is_admin = is_admin(); - - $this->user = array( - 'id' => $user['id'], - 'username' => $user['username'], - 'language' => $user['language'], - 'theme' => $user['theme'], - ); - - // inactive on ws.php to allow AJAX admin tasks - if ($this->is_admin && script_basename() != 'ws') - { - // show_queries - if (isset($_GET['ato_show_queries'])) - { - $this->data['show_queries'] = (bool)$_GET['ato_show_queries']; - } - $conf['show_queries'] = $this->data['show_queries']; - - if ($this->data['view_as'] == 0) - { - $this->data['view_as'] = $user['id']; - } - if (empty($this->data['lang'])) - { - $this->data['lang'] = $user['language']; - } - if (empty($this->data['theme'])) - { - $this->data['theme'] = $user['theme']; - } - - // view_as - if (!defined('IN_ADMIN')) - { - if (isset($_GET['ato_view_as'])) - { - $this->data['view_as'] = (int)$_GET['ato_view_as']; - } - if ($this->data['view_as'] != $user['id']) - { - $user = build_user($this->data['view_as'], true); - if (isset($_GET['ato_view_as'])) - { - $this->data['theme'] = $user['theme']; - $this->data['lang'] = $user['language']; - } - } - } - - // theme - if (isset($_GET['ato_theme'])) - { - $this->data['theme'] = $_GET['ato_theme']; - } - $user['theme'] = $this->data['theme']; - - // lang - if (isset($_GET['ato_lang'])) - { - $this->data['lang'] = $_GET['ato_lang']; - } - $user['language'] = $this->data['lang']; - - // debug_l10n - if (isset($_GET['ato_debug_l10n'])) - { - $this->data['debug_l10n'] = (bool)$_GET['ato_debug_l10n']; - } - $conf['debug_l10n'] = $this->data['debug_l10n']; - - // debug_template - if (isset($_GET['ato_debug_template'])) - { - $this->data['debug_template'] = (bool)$_GET['ato_debug_template']; - } - $conf['debug_template'] = $this->data['debug_template']; - - // template_combine_files - if (isset($_GET['ato_template_combine_files'])) - { - $this->data['template_combine_files'] = (bool)$_GET['ato_template_combine_files']; - } - $conf['template_combine_files'] = $this->data['template_combine_files']; - - // no_history - if (isset($_GET['ato_no_history'])) - { - $this->data['no_history'] = (bool)$_GET['ato_no_history']; - } - if ($this->data['no_history']) - { - add_event_handler('pwg_log_allowed', create_function('', 'return false;')); - } - - $this->save(); - } - } - - /** - * Returns the language of the current user if different from the current language - * false otherwise - */ - function get_user_language() - { - if (isset($this->user['language']) && isset($this->data['lang']) - && $this->user['language'] != $this->data['lang'] - ) - { - return $this->user['language']; - } - return false; - } - - /** - * Triggered on "init", in order to clean template files (not initialized on "user_init") - */ - public function init() - { - if ($this->is_admin) - { - if (isset($_GET['ato_purge_template'])) - { - global $template; - $template->delete_compiled_templates(); - FileCombiner::clear_combined_files(); - } - } - } - - /** - * Mark browser session cache for deletion - */ - public static function invalidate_cache() - { - global $conf; - conf_update_param('multiview_invalidate_cache', true, true); - } - - /** - * Register custom API methods - */ - public static function register_ws($arr) - { - $service = &$arr[0]; - - $service->addMethod( - 'multiView.getData', - array('MultiView', 'ws_get_data'), - array(), - 'AdminTools private method.', - null, - array('admin_only' => true, 'hidden' => true) - ); - } - - /** - * API method - * Return full list of users, themes and languages - */ - public static function ws_get_data($params) - { - global $conf; - - // get users - $query = ' -SELECT - '.$conf['user_fields']['id'].' AS id, - '.$conf['user_fields']['username'].' AS username, - status -FROM '.USERS_TABLE.' AS u - INNER JOIN '.USER_INFOS_TABLE.' AS i - ON '.$conf['user_fields']['id'].' = user_id - ORDER BY CONVERT('.$conf['user_fields']['username'].', CHAR) -;'; - $out['users'] = array_from_query($query); - - // get themes - include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php'); - $themes = new themes(); - foreach (array_keys($themes->db_themes_by_id) as $theme) - { - if (!empty($theme)) - { - $out['themes'][] = $theme; - } - } - - // get languages - foreach (get_languages() as $code => $name) - { - $out['languages'][] = array( - 'id' => $code, - 'name' => $name, - ); - } - - conf_delete_param('multiview_invalidate_cache'); - - return $out; - } -} \ No newline at end of file diff --git a/plugins/AdminTools/include/events.inc.php b/plugins/AdminTools/include/events.inc.php deleted file mode 100644 index d11d59ba7..000000000 --- a/plugins/AdminTools/include/events.inc.php +++ /dev/null @@ -1,360 +0,0 @@ -is_admin()) - { // full options for admin - $tpl_vars['U_SITE_ADMIN'] = $url_root . 'admin.php?page='; - $tpl_vars['MULTIVIEW'] = $MultiView->get_data(); - $tpl_vars['USER'] = $MultiView->get_user(); - $tpl_vars['CURRENT_USERNAME'] = $user['id']==$conf['guest_id'] ? l10n('guest') : $user['username']; - $tpl_vars['DELETE_CACHE'] = isset($conf['multiview_invalidate_cache']); - - if (($admin_lang = $MultiView->get_user_language()) !== false) - { - include_once(PHPWG_ROOT_PATH . 'include/functions_mail.inc.php'); - switch_lang_to($admin_lang); - } - } - else if ($conf['AdminTools']['public_quick_edit'] and - script_basename() == 'picture' and $picture['current']['added_by'] == $user['id'] - ) - { // only "edit" button for photo owner - } - else - { - return; - } - - $tpl_vars['POSITION'] = $conf['AdminTools']['closed_position']; - $tpl_vars['DEFAULT_OPEN'] = $conf['AdminTools']['default_open']; - $tpl_vars['U_SELF'] = $MultiView->get_clean_url(true); - - // photo page - if (script_basename() == 'picture') - { - $url_self = duplicate_picture_url(); - $tpl_vars['IS_PICTURE'] = true; - - // admin can add to caddie and set representattive - if ($MultiView->is_admin()) - { - $template->clear_assign(array( - 'U_SET_AS_REPRESENTATIVE', - 'U_PHOTO_ADMIN', - 'U_CADDIE', - )); - - $template->set_prefilter('picture', 'admintools_remove_privacy'); - - $tpl_vars['U_CADDIE'] = add_url_params( - $url_self, - array('action'=>'add_to_caddie') - ); - - $query = ' -SELECT element_id FROM ' . CADDIE_TABLE . ' - WHERE element_id = ' . $page['image_id'] .' -;'; - $tpl_vars['IS_IN_CADDIE'] = pwg_db_num_rows(pwg_query($query)) > 0; - - if (isset($page['category'])) - { - $tpl_vars['CATEGORY_ID'] = $page['category']['id']; - - $tpl_vars['U_SET_REPRESENTATIVE'] = add_url_params( - $url_self, - array('action'=>'set_as_representative') - ); - - $tpl_vars['IS_REPRESENTATIVE'] = $page['category']['representative_picture_id'] == $page['image_id']; - } - - $tpl_vars['U_ADMIN_EDIT'] = $url_root . 'admin.php?page=photo-' . $page['image_id'] - .(isset($page['category']) ? '&cat_id=' . $page['category']['id'] : ''); - } - - $tpl_vars['U_DELETE'] = add_url_params( - $url_self, array( - 'delete'=>'', - 'pwg_token'=>get_pwg_token() - ) - ); - - // gets tags (full available list is loaded in ajax) - include_once(PHPWG_ROOT_PATH . 'admin/include/functions.php'); - - $query = ' -SELECT id, name - FROM '.IMAGE_TAG_TABLE.' AS it - JOIN '.TAGS_TABLE.' AS t ON t.id = it.tag_id - WHERE image_id = '.$page['image_id'].' -;'; - $tag_selection = get_taglist($query); - - $tpl_vars['QUICK_EDIT'] = array( - 'img' => $picture['current']['derivatives']['square']->get_url(), - 'name' => $picture['current']['name'], - 'comment' => $picture['current']['comment'], - 'author' => $picture['current']['author'], - 'level' => $picture['current']['level'], - 'date_creation' => substr($picture['current']['date_creation'], 0, 10), - 'date_creation_time' => substr($picture['current']['date_creation'], 11, 5), - 'tag_selection' => $tag_selection, - ); - } - // album page (admin only) - else if ($MultiView->is_admin() and @$page['section'] == 'categories' and isset($page['category'])) - { - $url_self = duplicate_index_url(); - - $tpl_vars['IS_CATEGORY'] = true; - $tpl_vars['CATEGORY_ID'] = $page['category']['id']; - - $template->clear_assign(array( - 'U_EDIT', - 'U_CADDIE', - )); - - $tpl_vars['U_ADMIN_EDIT'] = $url_root . 'admin.php?page=album-' . $page['category']['id']; - - if (!empty($page['items'])) - { - $tpl_vars['U_CADDIE'] = add_url_params( - $url_self, - array('caddie'=>1) - ); - } - - $tpl_vars['QUICK_EDIT'] = array( - 'img' => null, - 'name' => $page['category']['name'], - 'comment' => $page['category']['comment'], - ); - - if (!empty($page['category']['representative_picture_id'])) - { - $query = ' -SELECT * FROM '.IMAGES_TABLE.' - WHERE id = '. $page['category']['representative_picture_id'] .' -;'; - $image_infos = pwg_db_fetch_assoc(pwg_query($query)); - - $tpl_vars['QUICK_EDIT']['img'] = DerivativeImage::get_one(IMG_SQUARE, $image_infos)->get_url(); - } - } - - - $template->assign(array( - 'ADMINTOOLS_PATH' => './plugins/' . ADMINTOOLS_ID .'/', - 'ato' => $tpl_vars, - )); - - $template->set_filename('ato_public_controller', realpath(ADMINTOOLS_PATH . 'template/public_controller.tpl')); - $template->parse('ato_public_controller'); - - if ($MultiView->is_admin() && @$admin_lang !== false) - { - switch_lang_back(); - } -} - -/** - * Add main toolbar to current page - * @trigger loc_after_page_header - */ -function admintools_add_admin_controller() -{ - global $MultiView, $conf, $template, $page, $user; - - $url_root = get_root_url(); - $tpl_vars = array(); - - $tpl_vars['MULTIVIEW'] = $MultiView->get_data(); - $tpl_vars['DELETE_CACHE'] = isset($conf['multiview_invalidate_cache']); - $tpl_vars['U_SELF'] = $MultiView->get_clean_admin_url(true); - - if (($admin_lang = $MultiView->get_user_language()) !== false) - { - include_once(PHPWG_ROOT_PATH . 'include/functions_mail.inc.php'); - switch_lang_to($admin_lang); - } - - $template->assign(array( - 'ADMINTOOLS_PATH' => './plugins/' . ADMINTOOLS_ID .'/', - 'ato' => $tpl_vars, - )); - - $template->set_filename('ato_admin_controller', realpath(ADMINTOOLS_PATH . 'template/admin_controller.tpl')); - $template->parse('ato_admin_controller'); - - if ($MultiView->is_admin() && @$admin_lang !== false) - { - switch_lang_back(); - } -} - -function admintools_add_admin_controller_setprefilter() -{ - global $template; - $template->set_prefilter('header', 'admintools_admin_prefilter'); -} - -function admintools_admin_prefilter($content) -{ - $search = '{\'Change Admin Colors\'|translate}'; - $replace = '{\'Tools\'|translate}'; - return str_replace($search, $replace, $content); -} - -/** - * Disable privacy level switchbox - */ -function admintools_remove_privacy($content) -{ - $search = '{if $display_info.privacy_level and isset($available_permission_levels)}'; - $replace = '{if false}'; - return str_replace($search, $replace, $content); -} - -/** - * Save picture form - * @trigger loc_begin_picture - */ -function admintools_save_picture() -{ - global $page, $conf, $MultiView, $user, $picture; - - if (!isset($_GET['delete']) and !isset($_POST['action']) and @$_POST['action'] != 'quick_edit') - { - return; - } - - $query = 'SELECT added_by FROM '. IMAGES_TABLE .' WHERE id = '. $page['image_id'] .';'; - list($added_by) = pwg_db_fetch_row(pwg_query($query)); - - if (!$MultiView->is_admin() and $user['id'] != $added_by) - { - return; - } - - if (isset($_GET['delete']) and get_pwg_token()==@$_GET['pwg_token']) - { - include_once(PHPWG_ROOT_PATH . 'admin/include/functions.php'); - - delete_elements(array($page['image_id']), true); - invalidate_user_cache(); - - if (isset($page['rank_of'][ $page['image_id'] ])) - { - redirect( - duplicate_index_url( - array( - 'start' => - floor($page['rank_of'][ $page['image_id'] ] / $page['nb_image_page']) - * $page['nb_image_page'] - ) - ) - ); - } - else - { - redirect(make_index_url()); - } - } - - if ($_POST['action'] == 'quick_edit') - { - include_once(PHPWG_ROOT_PATH . 'admin/include/functions.php'); - - $data = array( - 'name' => $_POST['name'], - 'author' => $_POST['author'], - ); - - if ($MultiView->is_admin()) - { - $data['level'] = $_POST['level']; - } - - if ($conf['allow_html_descriptions']) - { - $data['comment'] = @$_POST['comment']; - } - else - { - $data['comment'] = strip_tags(@$_POST['comment']); - } - - if (!empty($_POST['date_creation']) and strtotime($_POST['date_creation']) !== false) - { - $data['date_creation'] = $_POST['date_creation'] .' '. $_POST['date_creation_time']; - } - - single_update( - IMAGES_TABLE, - $data, - array('id' => $page['image_id']) - ); - - $tag_ids = array(); - if (!empty($_POST['tags'])) - { - $tag_ids = get_tag_ids($_POST['tags']); - } - set_tags($tag_ids, $page['image_id']); - } -} - -/** - * Save category form - * @trigger loc_begin_index - */ -function admintools_save_category() -{ - global $page, $conf, $MultiView; - - if (!$MultiView->is_admin()) - { - return; - } - - if (@$_POST['action'] == 'quick_edit') - { - $data = array( - 'name' => $_POST['name'], - ); - - if ($conf['allow_html_descriptions']) - { - $data['comment'] = @$_POST['comment']; - } - else - { - $data['comment'] = strip_tags(@$_POST['comment']); - } - - single_update( - CATEGORIES_TABLE, - $data, - array('id' => $page['category']['id']) - ); - - redirect(duplicate_index_url()); - } -} \ No newline at end of file diff --git a/plugins/AdminTools/include/index.php b/plugins/AdminTools/include/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/include/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/index.php b/plugins/AdminTools/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/ar_SA/description.txt b/plugins/AdminTools/language/ar_SA/description.txt deleted file mode 100755 index 9d282a941..000000000 --- a/plugins/AdminTools/language/ar_SA/description.txt +++ /dev/null @@ -1 +0,0 @@ -القيام ببعض المهام الادارية على الصفحات العامة \ No newline at end of file diff --git a/plugins/AdminTools/language/ar_SA/index.php b/plugins/AdminTools/language/ar_SA/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/ar_SA/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/ar_SA/plugin.lang.php b/plugins/AdminTools/language/ar_SA/plugin.lang.php deleted file mode 100755 index 760b9a5e5..000000000 --- a/plugins/AdminTools/language/ar_SA/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'عرض بشكل %s.'; -$lang['View as'] = 'عرض بشكل'; -$lang['Show SQL queries'] = 'إظهار استعلامات SQL'; -$lang['Saved'] = 'حفظ'; -$lang['Save visit in history'] = 'حفظ تاريخ الزيارة'; -$lang['Save'] = 'حفظ'; -$lang['Revert'] = 'الى الخلف'; -$lang['Quick edit'] = 'التحرير السريع'; -$lang['Properties page'] = 'خصائص الصفحة'; -$lang['Debug template'] = 'قالب تصحيح الأخطاء'; -$lang['Combine JS&CSS'] = 'الجمع بين JS و CSS'; -$lang['Debug languages'] = 'تصحيح أخطاء اللغات'; -$lang['Closed icon position'] = 'إغلاق وضع الآيقونه'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'منح حق تحرير الصور لاصحاب الصور حتى المدير العام'; -$lang['Open toolbar by default'] = 'فتح شريط الأدوات بشكل افتراضي'; -$lang['left'] = 'يسار'; -$lang['right'] = 'يمين'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/bg_BG/description.txt b/plugins/AdminTools/language/bg_BG/description.txt deleted file mode 100755 index 1dc889abe..000000000 --- a/plugins/AdminTools/language/bg_BG/description.txt +++ /dev/null @@ -1 +0,0 @@ -Няколко административни настройки на публичните страници \ No newline at end of file diff --git a/plugins/AdminTools/language/bg_BG/index.php b/plugins/AdminTools/language/bg_BG/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/bg_BG/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/bg_BG/plugin.lang.php b/plugins/AdminTools/language/bg_BG/plugin.lang.php deleted file mode 100755 index 787f474e9..000000000 --- a/plugins/AdminTools/language/bg_BG/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Разглежда като %s.'; -$lang['View as'] = 'Виж като'; -$lang['Save'] = 'Запис'; -$lang['Save visit in history'] = 'Пази история на посещенията'; -$lang['Saved'] = 'Записано'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Дава права за редакция върху снимка на собственика й дори и да не е администратор'; -$lang['Closed icon position'] = 'Затворена позиция на икона'; -$lang['Open toolbar by default'] = 'Отваряне на лента с инструменти по подразбиране'; -$lang['right'] = 'дясно'; -$lang['left'] = 'ляво'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/br_FR/description.txt b/plugins/AdminTools/language/br_FR/description.txt deleted file mode 100755 index 54d213a31..000000000 --- a/plugins/AdminTools/language/br_FR/description.txt +++ /dev/null @@ -1 +0,0 @@ -Evit ober trevelloù mererezh dre ar pajennoù diavaez. \ No newline at end of file diff --git a/plugins/AdminTools/language/br_FR/index.php b/plugins/AdminTools/language/br_FR/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/br_FR/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/br_FR/plugin.lang.php b/plugins/AdminTools/language/br_FR/plugin.lang.php deleted file mode 100755 index 3f7a70c52..000000000 --- a/plugins/AdminTools/language/br_FR/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'Gwelet evel %s.'; -$lang['left'] = 'tu kleiz'; -$lang['right'] = 'tu dehoù'; \ No newline at end of file diff --git a/plugins/AdminTools/language/ca_ES/description.txt b/plugins/AdminTools/language/ca_ES/description.txt deleted file mode 100755 index aa466d85d..000000000 --- a/plugins/AdminTools/language/ca_ES/description.txt +++ /dev/null @@ -1 +0,0 @@ -Permet tasques d'administració des de les pàgines públiques \ No newline at end of file diff --git a/plugins/AdminTools/language/ca_ES/index.php b/plugins/AdminTools/language/ca_ES/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/ca_ES/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/ca_ES/plugin.lang.php b/plugins/AdminTools/language/ca_ES/plugin.lang.php deleted file mode 100755 index ebc0ffed7..000000000 --- a/plugins/AdminTools/language/ca_ES/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'Veure com %s.'; -$lang['left'] = 'esquerra'; -$lang['right'] = 'dreta'; \ No newline at end of file diff --git a/plugins/AdminTools/language/cs_CZ/description.txt b/plugins/AdminTools/language/cs_CZ/description.txt deleted file mode 100644 index 5a22f4ed3..000000000 --- a/plugins/AdminTools/language/cs_CZ/description.txt +++ /dev/null @@ -1 +0,0 @@ -Umožní provádět některé administrační úkony i na stránkách fotogalerie \ No newline at end of file diff --git a/plugins/AdminTools/language/cs_CZ/index.php b/plugins/AdminTools/language/cs_CZ/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/cs_CZ/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/cs_CZ/plugin.lang.php b/plugins/AdminTools/language/cs_CZ/plugin.lang.php deleted file mode 100644 index 7b9e5bb58..000000000 --- a/plugins/AdminTools/language/cs_CZ/plugin.lang.php +++ /dev/null @@ -1,20 +0,0 @@ -%s.'] = 'Zobrazení jako %s.'; -$lang['Properties page'] = 'Stránka vlastností'; -$lang['Quick edit'] = 'Rychlá editace'; -$lang['Revert'] = 'Nazpět'; -$lang['Save'] = 'Uložit'; -$lang['Saved'] = 'Uloženo'; -$lang['Save visit in history'] = 'Ukládat návštevy do historie'; -$lang['Show SQL queries'] = 'Zobrazit SQL queries'; -$lang['View as'] = 'Zobrazit jako'; - -$lang['Closed icon position'] = 'Poloha ikony pro zavření'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Udělit přístup do rychlé editace vlastníkům fotek i když nejsou admin'; -$lang['Open toolbar by default'] = 'Výchozí otevření panelu nástrojů'; -$lang['left'] = 'levý'; -$lang['right'] = 'pravý'; \ No newline at end of file diff --git a/plugins/AdminTools/language/da_DK/description.txt b/plugins/AdminTools/language/da_DK/description.txt deleted file mode 100755 index 7fca9ec1c..000000000 --- a/plugins/AdminTools/language/da_DK/description.txt +++ /dev/null @@ -1 +0,0 @@ -Foretag nogle administrative handlinger fra de offentlige sider. diff --git a/plugins/AdminTools/language/da_DK/index.php b/plugins/AdminTools/language/da_DK/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/da_DK/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/da_DK/plugin.lang.php b/plugins/AdminTools/language/da_DK/plugin.lang.php deleted file mode 100755 index cdb496436..000000000 --- a/plugins/AdminTools/language/da_DK/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Viser som %s.'; -$lang['Saved'] = 'Gemt'; -$lang['Closed icon position'] = 'Lukket-ikons placering'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Giv adgang til hurtigredigering for fotoejere, selv hvis de ikke er admin'; -$lang['Open toolbar by default'] = 'Åbn værktøjslinje som standard'; -$lang['left'] = 'venstre'; -$lang['right'] = 'højre'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/de_DE/description.txt b/plugins/AdminTools/language/de_DE/description.txt deleted file mode 100755 index ae38d8107..000000000 --- a/plugins/AdminTools/language/de_DE/description.txt +++ /dev/null @@ -1 +0,0 @@ -Ausgewählte Admin-Tätigkeiten mittels Toolbar von allen Seiten aus durchführen \ No newline at end of file diff --git a/plugins/AdminTools/language/de_DE/index.php b/plugins/AdminTools/language/de_DE/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/de_DE/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/de_DE/plugin.lang.php b/plugins/AdminTools/language/de_DE/plugin.lang.php deleted file mode 100755 index 0177b4bfe..000000000 --- a/plugins/AdminTools/language/de_DE/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'Aktueller Benutzer: %s'; -$lang['Saved'] = 'Gespeichert'; -$lang['Closed icon position'] = 'Position des geschlossenen Icons'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Zugriff zum schnellen Editieren für Bildereigentümer erlauben, obwohl sie kein Administrator sind.'; -$lang['Open toolbar by default'] = 'Die Werkzeugleiste standardmässig öffnen'; -$lang['left'] = 'links'; -$lang['right'] = 'rechts'; \ No newline at end of file diff --git a/plugins/AdminTools/language/el_GR/description.txt b/plugins/AdminTools/language/el_GR/description.txt deleted file mode 100755 index a778ffb73..000000000 --- a/plugins/AdminTools/language/el_GR/description.txt +++ /dev/null @@ -1 +0,0 @@ -Κάνει κάποιες διαχειριστικές εργασίες από δημόσιες σελίδες \ No newline at end of file diff --git a/plugins/AdminTools/language/el_GR/index.php b/plugins/AdminTools/language/el_GR/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/el_GR/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/el_GR/plugin.lang.php b/plugins/AdminTools/language/el_GR/plugin.lang.php deleted file mode 100755 index 665728dc4..000000000 --- a/plugins/AdminTools/language/el_GR/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Προβολή ως %s'; -$lang['View as'] = 'Προβολή ως'; -$lang['Show SQL queries'] = 'Εμφάνιση ερωτημάτων SQL'; -$lang['Save visit in history'] = 'Αποθήκευση επίσκεψης στην ιστορία'; -$lang['Save'] = 'Αποθήκευση'; -$lang['Revert'] = 'Επαναφορά'; -$lang['Quick edit'] = 'Γρήγορη επεξεργασία'; -$lang['Debug languages'] = 'Γλώσσες αποσφάτωσης'; -$lang['Debug template'] = 'Πρότυπο αποσφάτωσης'; -$lang['Properties page'] = 'Ιδιότητες σελίδας'; -$lang['Combine JS&CSS'] = 'Συνδυάστε JS&CSS'; -$lang['Saved'] = 'Αποθηκεύτηκε'; -$lang['right'] = 'δεξιά'; -$lang['left'] = 'αριστερά'; -$lang['Open toolbar by default'] = 'Ανοικτή γραμμή εργαλείων από προεπιλογή'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Δώστε πρόσβαση σε γρήγορη επεξεργασία στους ιδιοκτήτες φωτογραφιών, ακόμη και αν δεν το διαχειριστές '; -$lang['Closed icon position'] = 'Θέση Κλειστού εικονονίδιου'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/en_UK/description.txt b/plugins/AdminTools/language/en_UK/description.txt deleted file mode 100644 index 92caa90b0..000000000 --- a/plugins/AdminTools/language/en_UK/description.txt +++ /dev/null @@ -1 +0,0 @@ -Do some admin task from the public pages \ No newline at end of file diff --git a/plugins/AdminTools/language/en_UK/index.php b/plugins/AdminTools/language/en_UK/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/en_UK/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/en_UK/plugin.lang.php b/plugins/AdminTools/language/en_UK/plugin.lang.php deleted file mode 100644 index af09c38ce..000000000 --- a/plugins/AdminTools/language/en_UK/plugin.lang.php +++ /dev/null @@ -1,21 +0,0 @@ -%s.'] = 'Viewing as %s.'; -$lang['Properties page'] = 'Properties page'; -$lang['Quick edit'] = 'Quick edit'; -$lang['Revert'] = 'Revert'; -$lang['Save'] = 'Save'; -$lang['Saved'] = 'Saved'; -$lang['Save visit in history'] = 'Save visit in history'; -$lang['Show SQL queries'] = 'Show SQL queries'; -$lang['View as'] = 'View as'; -$lang['Closed icon position'] = 'Closed icon position'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Give access to quick edit to photo owners even if they are not admin'; -$lang['Open toolbar by default'] = 'Open toolbar by default'; -$lang['left'] = 'left'; -$lang['right'] = 'right'; - -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/eo_EO/description.txt b/plugins/AdminTools/language/eo_EO/description.txt deleted file mode 100755 index 2844006c0..000000000 --- a/plugins/AdminTools/language/eo_EO/description.txt +++ /dev/null @@ -1 +0,0 @@ -Faras kelkajn administrajn taskojn el la publikaj paĝoj \ No newline at end of file diff --git a/plugins/AdminTools/language/eo_EO/index.php b/plugins/AdminTools/language/eo_EO/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/eo_EO/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/eo_EO/plugin.lang.php b/plugins/AdminTools/language/eo_EO/plugin.lang.php deleted file mode 100755 index 5d045e338..000000000 --- a/plugins/AdminTools/language/eo_EO/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Vidita kiel %s'; -$lang['Saved'] = 'Konservita'; -$lang['Closed icon position'] = 'Pozicio de la fermita bildsimbolo'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Permesi al fotoposedantoj atingon al rapida redaktado eĉ se ili ne estas administrantoj'; -$lang['Open toolbar by default'] = 'Malfermi la aprioran ilobreton'; -$lang['left'] = 'maldekstra'; -$lang['right'] = 'dekstra'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/es_ES/description.txt b/plugins/AdminTools/language/es_ES/description.txt deleted file mode 100755 index c92e5b724..000000000 --- a/plugins/AdminTools/language/es_ES/description.txt +++ /dev/null @@ -1 +0,0 @@ -Hacer algunas tarea de administración de las páginas públicas \ No newline at end of file diff --git a/plugins/AdminTools/language/es_ES/index.php b/plugins/AdminTools/language/es_ES/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/es_ES/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/es_ES/plugin.lang.php b/plugins/AdminTools/language/es_ES/plugin.lang.php deleted file mode 100755 index 4974253b5..000000000 --- a/plugins/AdminTools/language/es_ES/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Visualización como %s.'; -$lang['Quick edit'] = 'Edición rápida'; -$lang['Properties page'] = 'Propriedades de la pagina'; -$lang['Debug template'] = 'Depurar plantilla'; -$lang['Debug languages'] = 'Depurar idiomas'; -$lang['Combine JS&CSS'] = 'Combine JS y CSS'; -$lang['Saved'] = 'Guardado'; -$lang['Closed icon position'] = 'Posición de icono Cerrado'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Dar acceso a la edición rápida a los propietarios de las fotos, incluso si no son admin'; -$lang['Open toolbar by default'] = 'Abrir por defecto la barra de herramientas '; -$lang['left'] = 'izquierda'; -$lang['right'] = 'derecha'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/et_EE/description.txt b/plugins/AdminTools/language/et_EE/description.txt deleted file mode 100755 index db3329942..000000000 --- a/plugins/AdminTools/language/et_EE/description.txt +++ /dev/null @@ -1 +0,0 @@ -Lubab mõningast toimetamist otse üldlehtedelt \ No newline at end of file diff --git a/plugins/AdminTools/language/et_EE/index.php b/plugins/AdminTools/language/et_EE/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/et_EE/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/et_EE/plugin.lang.php b/plugins/AdminTools/language/et_EE/plugin.lang.php deleted file mode 100755 index 1b2025bab..000000000 --- a/plugins/AdminTools/language/et_EE/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'Kuvatakse kui %s.'; -$lang['View as'] = 'Näita kui'; -$lang['Show SQL queries'] = 'Näita andmebaasi SQL-päringuid'; -$lang['Saved'] = 'Salvestatud'; -$lang['Save visit in history'] = 'Salvesta külastus ajalukku'; -$lang['Save'] = 'Salvesta'; -$lang['Revert'] = 'Taasta'; -$lang['Quick edit'] = 'Kiirtoimeta'; -$lang['Properties page'] = 'Atribuudileht'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Luba fotode kiirtoimetamist nende omanikele, kuigi nad pole haldurid'; -$lang['Open toolbar by default'] = 'Näita tööriistariba vaikimisi'; -$lang['Debug template'] = 'Silumise mall'; -$lang['Debug languages'] = 'Silumise keeled'; -$lang['Combine JS&CSS'] = 'Kasuta nii JavaScripti kui CSS-i'; -$lang['Closed icon position'] = 'Suletud ikooni asukoht'; \ No newline at end of file diff --git a/plugins/AdminTools/language/fa_IR/description.txt b/plugins/AdminTools/language/fa_IR/description.txt deleted file mode 100755 index 43deda3af..000000000 --- a/plugins/AdminTools/language/fa_IR/description.txt +++ /dev/null @@ -1 +0,0 @@ -از صفحات عمومي مقداري كار مديريتي انجام دهيد. \ No newline at end of file diff --git a/plugins/AdminTools/language/fa_IR/index.php b/plugins/AdminTools/language/fa_IR/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/fa_IR/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/fa_IR/plugin.lang.php b/plugins/AdminTools/language/fa_IR/plugin.lang.php deleted file mode 100755 index b6ffd2dce..000000000 --- a/plugins/AdminTools/language/fa_IR/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'نمايش در حالت %s.'; -$lang['left'] = 'چپ'; -$lang['right'] = 'راست'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/fi_FI/description.txt b/plugins/AdminTools/language/fi_FI/description.txt deleted file mode 100755 index a7cc2feec..000000000 --- a/plugins/AdminTools/language/fi_FI/description.txt +++ /dev/null @@ -1 +0,0 @@ -Suorita osa ylläpitäjän toiminnoista suoraan julkisilta sivuilta \ No newline at end of file diff --git a/plugins/AdminTools/language/fi_FI/index.php b/plugins/AdminTools/language/fi_FI/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/fi_FI/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/fi_FI/plugin.lang.php b/plugins/AdminTools/language/fi_FI/plugin.lang.php deleted file mode 100755 index 28b94fadd..000000000 --- a/plugins/AdminTools/language/fi_FI/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Näkyy %s'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Anna oikeus pikamuokkaukseen vaikkei käyttäjä ole ylläpitäjä'; -$lang['Debug template'] = 'Debuggaa malline'; -$lang['Open toolbar by default'] = 'Avaa työkalupalkki oletuksena'; -$lang['left'] = 'vasen'; -$lang['right'] = 'oikea'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/fr_CA/description.txt b/plugins/AdminTools/language/fr_CA/description.txt deleted file mode 100644 index 34aa486e5..000000000 --- a/plugins/AdminTools/language/fr_CA/description.txt +++ /dev/null @@ -1 +0,0 @@ -Rend possibles certaines tâches d’administration depuis la partie publique \ No newline at end of file diff --git a/plugins/AdminTools/language/fr_CA/index.php b/plugins/AdminTools/language/fr_CA/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/fr_CA/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/fr_CA/plugin.lang.php b/plugins/AdminTools/language/fr_CA/plugin.lang.php deleted file mode 100644 index c8a558d74..000000000 --- a/plugins/AdminTools/language/fr_CA/plugin.lang.php +++ /dev/null @@ -1,21 +0,0 @@ -%s.'] = 'Vue simulée de %s.'; -$lang['Properties page'] = 'Page d\'administration'; -$lang['Quick edit'] = 'Édition rapide'; -$lang['Revert'] = 'Annuler'; -$lang['Save'] = 'Sauvegarder'; -$lang['Saved'] = 'Sauvegardé'; -$lang['Save visit in history'] = 'Sauvegarder la viste dans l\'historique'; -$lang['Show SQL queries'] = 'Afficher les requêtes SQL'; -$lang['View as'] = 'Voir en tant que'; -$lang['Closed icon position'] = 'Position de l\'icône fermée'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Autoriser l\'accès à l\'édition rapide aux propriétaires des photos même s\'ils ne sont pas administrateurs'; -$lang['Open toolbar by default'] = 'Ouvrir la barre par défaut'; -$lang['left'] = 'gauche'; -$lang['right'] = 'droite'; - -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/fr_FR/description.txt b/plugins/AdminTools/language/fr_FR/description.txt deleted file mode 100644 index 34aa486e5..000000000 --- a/plugins/AdminTools/language/fr_FR/description.txt +++ /dev/null @@ -1 +0,0 @@ -Rend possibles certaines tâches d’administration depuis la partie publique \ No newline at end of file diff --git a/plugins/AdminTools/language/fr_FR/index.php b/plugins/AdminTools/language/fr_FR/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/fr_FR/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/fr_FR/plugin.lang.php b/plugins/AdminTools/language/fr_FR/plugin.lang.php deleted file mode 100644 index bf718cef4..000000000 --- a/plugins/AdminTools/language/fr_FR/plugin.lang.php +++ /dev/null @@ -1,21 +0,0 @@ -%s.'] = 'Vue simulée de %s.'; -$lang['Properties page'] = 'Page d\'administration'; -$lang['Quick edit'] = 'Édition rapide'; -$lang['Revert'] = 'Annuler'; -$lang['Save'] = 'Sauvegarder'; -$lang['Saved'] = 'Sauvegardé'; -$lang['Save visit in history'] = 'Sauvegarder la viste dans l\'historique'; -$lang['Show SQL queries'] = 'Afficher les requêtes SQL'; -$lang['View as'] = 'Voir en tant que'; -$lang['Closed icon position'] = 'Position the l\'icône fermé'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Autoriser l\'accès à l\'édition rapide aux propriétaires des photos même s\'ils ne sont pas admin'; -$lang['Open toolbar by default'] = 'Ouvrir la barre par défaut'; -$lang['left'] = 'gauche'; -$lang['right'] = 'droite'; - -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/gl_ES/description.txt b/plugins/AdminTools/language/gl_ES/description.txt deleted file mode 100644 index 96b307a5a..000000000 --- a/plugins/AdminTools/language/gl_ES/description.txt +++ /dev/null @@ -1 +0,0 @@ -Faga algunha tarefa de administración das páxinas públicas. \ No newline at end of file diff --git a/plugins/AdminTools/language/gl_ES/index.php b/plugins/AdminTools/language/gl_ES/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/gl_ES/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/gl_ES/plugin.lang.php b/plugins/AdminTools/language/gl_ES/plugin.lang.php deleted file mode 100644 index 3d4b718e6..000000000 --- a/plugins/AdminTools/language/gl_ES/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'Vendo como %s.'; -$lang['left'] = 'esquerda'; -$lang['right'] = 'dereita'; -$lang['Closed icon position'] = 'Posición icona pechada'; -$lang['Combine JS&CSS'] = 'Combinar JS&CSS'; -$lang['Debug languages'] = 'Depurar idiomas'; -$lang['Debug template'] = 'Depurar modelo'; -$lang['Open toolbar by default'] = 'Abrir a barra de ferramentas predeterminada'; -$lang['Properties page'] = 'Páxina de propiedades'; \ No newline at end of file diff --git a/plugins/AdminTools/language/he_IL/description.txt b/plugins/AdminTools/language/he_IL/description.txt deleted file mode 100755 index c4e66f93a..000000000 --- a/plugins/AdminTools/language/he_IL/description.txt +++ /dev/null @@ -1 +0,0 @@ -ביצוע משימות מנהל מדפים ציבוריים \ No newline at end of file diff --git a/plugins/AdminTools/language/he_IL/index.php b/plugins/AdminTools/language/he_IL/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/he_IL/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/he_IL/plugin.lang.php b/plugins/AdminTools/language/he_IL/plugin.lang.php deleted file mode 100755 index 70708d9df..000000000 --- a/plugins/AdminTools/language/he_IL/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'צופה כ %s.'; -$lang['Open toolbar by default'] = 'סרגל כלים פתוחים כברירת מחדל'; -$lang['Properties page'] = 'מאפיינים'; -$lang['Combine JS&CSS'] = 'שלב JS&CSS'; -$lang['Debug languages'] = 'מיפוי שגיאות בשפות'; -$lang['Debug template'] = 'מיפוי שגיאות בתבנית'; -$lang['Closed icon position'] = 'סגור מיקום סמל'; -$lang['Quick edit'] = 'עריכה מהירה'; -$lang['Revert'] = 'חזור'; -$lang['Save'] = 'שמור'; -$lang['Save visit in history'] = 'שמור ביקורים בהיסטוריה'; -$lang['Saved'] = 'נשמר'; -$lang['Show SQL queries'] = 'הצג שאילתות SQL'; -$lang['View as'] = 'צפה כ'; -$lang['left'] = 'שמאל'; -$lang['right'] = 'ימין'; \ No newline at end of file diff --git a/plugins/AdminTools/language/hu_HU/description.txt b/plugins/AdminTools/language/hu_HU/description.txt deleted file mode 100644 index ef1ab553d..000000000 --- a/plugins/AdminTools/language/hu_HU/description.txt +++ /dev/null @@ -1 +0,0 @@ -Néhány admin tevékenységet elláthatsz a publikus oldalról \ No newline at end of file diff --git a/plugins/AdminTools/language/hu_HU/index.php b/plugins/AdminTools/language/hu_HU/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/hu_HU/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/hu_HU/plugin.lang.php b/plugins/AdminTools/language/hu_HU/plugin.lang.php deleted file mode 100755 index b8134fd24..000000000 --- a/plugins/AdminTools/language/hu_HU/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'Látható, mint %s.'; \ No newline at end of file diff --git a/plugins/AdminTools/language/index.php b/plugins/AdminTools/language/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/it_IT/description.txt b/plugins/AdminTools/language/it_IT/description.txt deleted file mode 100755 index c73826599..000000000 --- a/plugins/AdminTools/language/it_IT/description.txt +++ /dev/null @@ -1 +0,0 @@ -Fare qualche admin task dalle pagine pubbliche \ No newline at end of file diff --git a/plugins/AdminTools/language/it_IT/index.php b/plugins/AdminTools/language/it_IT/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/it_IT/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/it_IT/plugin.lang.php b/plugins/AdminTools/language/it_IT/plugin.lang.php deleted file mode 100755 index 9f1eec8d5..000000000 --- a/plugins/AdminTools/language/it_IT/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Visualizza come %s.'; -$lang['View as'] = 'Mostra come'; -$lang['Show SQL queries'] = 'Mostra queries SQL'; -$lang['Save visit in history'] = 'Salvare visita nella storia'; -$lang['Revert'] = 'Ripristina'; -$lang['Properties page'] = 'Proprietà pagina'; -$lang['Quick edit'] = 'Modifica veloce'; -$lang['Debug template'] = 'Debug dei modelli'; -$lang['Debug languages'] = 'Debug delle lingue'; -$lang['Combine JS&CSS'] = 'Combinare JS & CSS'; -$lang['Save'] = 'Salva'; -$lang['Saved'] = 'Salvato'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Dare accesso modifica veloce ai proprietari di foto anche se non sono amministratori'; -$lang['Closed icon position'] = 'Posiziona l\'icona di chiusura'; -$lang['Open toolbar by default'] = 'Apri la barra predefinita'; -$lang['left'] = 'sinistra'; -$lang['right'] = 'destra'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/ja_JP/index.php b/plugins/AdminTools/language/ja_JP/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/ja_JP/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/ja_JP/plugin.lang.php b/plugins/AdminTools/language/ja_JP/plugin.lang.php deleted file mode 100644 index b72fee146..000000000 --- a/plugins/AdminTools/language/ja_JP/plugin.lang.php +++ /dev/null @@ -1,31 +0,0 @@ - diff --git a/plugins/AdminTools/language/km_KH/plugin.lang.php b/plugins/AdminTools/language/km_KH/plugin.lang.php deleted file mode 100755 index f7455f39d..000000000 --- a/plugins/AdminTools/language/km_KH/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'បង្ហាញជា %s។'; -$lang['Show SQL queries'] = 'បង្ហាញសំនេរ SQL'; -$lang['Saved'] = 'បានរក្សាទុក'; -$lang['Save visit in history'] = 'រក្សាការចូលមើលទុក'; -$lang['Save'] = 'រក្សាទុក'; -$lang['Quick edit'] = 'ការកែប្រែលឿន'; -$lang['Properties page'] = 'ទំព័រឯកសារលក្ខណៈ'; -$lang['Open toolbar by default'] = 'បើរបារឧបករណ៍ដោយលំនាំដើម'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'ផ្តល់សិទ្ធិចូលទៅការកែប្រែលឿនដល់ម្ចាស់រូបភាព បើទោះបីពួកគាត់ពុំមែនជាអ្នកគ្រប់គ្រងក៏ដោយ'; -$lang['Debug template'] = 'ស្វែងរកកំបុសពុម្ព'; -$lang['Debug languages'] = 'ស្វែងរកកំហុសភាសា'; -$lang['Combine JS&CSS'] = 'បញ្ចូល JS&CSS'; -$lang['Closed icon position'] = 'ទីតាំងរូបបិទ'; \ No newline at end of file diff --git a/plugins/AdminTools/language/lt_LT/description.txt b/plugins/AdminTools/language/lt_LT/description.txt deleted file mode 100755 index d2af0ceb1..000000000 --- a/plugins/AdminTools/language/lt_LT/description.txt +++ /dev/null @@ -1 +0,0 @@ -Atlikti kai kurias administravimo užduotis iš viešųjų puslapių \ No newline at end of file diff --git a/plugins/AdminTools/language/lt_LT/index.php b/plugins/AdminTools/language/lt_LT/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/lt_LT/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/lt_LT/plugin.lang.php b/plugins/AdminTools/language/lt_LT/plugin.lang.php deleted file mode 100755 index 30fcf29c6..000000000 --- a/plugins/AdminTools/language/lt_LT/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Rodoma kaip %s.'; -$lang['Saved'] = 'Išsaugota'; -$lang['Closed icon position'] = 'Užvertos ikonos pozicija'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Leisti greitą nuotraukos redagavimą jų savininkams, net jeigu jie ne administratoriai'; -$lang['Open toolbar by default'] = 'Atverti įrankių juostą pagal nutylėjimą'; -$lang['left'] = 'kairė'; -$lang['right'] = 'dešinė'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/lv_LV/description.txt b/plugins/AdminTools/language/lv_LV/description.txt deleted file mode 100755 index 4cea33bc9..000000000 --- a/plugins/AdminTools/language/lv_LV/description.txt +++ /dev/null @@ -1 +0,0 @@ -Veikt kādu administratora uzdevumu no vispārējām lapām. \ No newline at end of file diff --git a/plugins/AdminTools/language/lv_LV/index.php b/plugins/AdminTools/language/lv_LV/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/lv_LV/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/lv_LV/plugin.lang.php b/plugins/AdminTools/language/lv_LV/plugin.lang.php deleted file mode 100755 index 002766ab1..000000000 --- a/plugins/AdminTools/language/lv_LV/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Apskatīt kā %s b>.'; -$lang['Show SQL queries'] = 'Parādīt SQL vaicājumu'; -$lang['Save visit in history'] = 'Saglabāt apmeklējumu vēsturē'; -$lang['Save'] = 'Saglabāt'; -$lang['Debug languages'] = 'Atkļūdot valodas'; -$lang['Debug template'] = 'Atkļūdošanas veidne'; -$lang['Properties page'] = 'Rekvizītu lapa'; -$lang['Quick edit'] = 'Ātrā rediģēšana'; -$lang['Saved'] = 'Saglabāts'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Ļauj piekļūt foto īpašniekiem ātrai rediģēšanai arī tad, ja tie nav admini'; -$lang['Closed icon position'] = 'Ikonas slēgt pozīcija'; -$lang['Open toolbar by default'] = 'Atvērt rīkjoslu pēc noklusējuma'; -$lang['right'] = 'pa labi'; -$lang['left'] = 'pa kreisi'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/mn_MN/description.txt b/plugins/AdminTools/language/mn_MN/description.txt deleted file mode 100755 index 92caa90b0..000000000 --- a/plugins/AdminTools/language/mn_MN/description.txt +++ /dev/null @@ -1 +0,0 @@ -Do some admin task from the public pages \ No newline at end of file diff --git a/plugins/AdminTools/language/mn_MN/index.php b/plugins/AdminTools/language/mn_MN/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/mn_MN/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/mn_MN/plugin.lang.php b/plugins/AdminTools/language/mn_MN/plugin.lang.php deleted file mode 100755 index 505c16f83..000000000 --- a/plugins/AdminTools/language/mn_MN/plugin.lang.php +++ /dev/null @@ -1,33 +0,0 @@ - diff --git a/plugins/AdminTools/language/nb_NO/plugin.lang.php b/plugins/AdminTools/language/nb_NO/plugin.lang.php deleted file mode 100755 index f3ef67d4d..000000000 --- a/plugins/AdminTools/language/nb_NO/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Se som %s.'; -$lang['Closed icon position'] = 'Låst ikonposisjon'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Gi tilgang til hurtigredigering av bildeeier, selv om de ikke er admin'; -$lang['Open toolbar by default'] = 'Åpne verktøy automatisk'; -$lang['left'] = 'venstre'; -$lang['right'] = 'høyre'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/nl_NL/description.txt b/plugins/AdminTools/language/nl_NL/description.txt deleted file mode 100755 index 8522e1f02..000000000 --- a/plugins/AdminTools/language/nl_NL/description.txt +++ /dev/null @@ -1 +0,0 @@ -Doe enkele admin-taken vanaf de openbare pagina's \ No newline at end of file diff --git a/plugins/AdminTools/language/nl_NL/index.php b/plugins/AdminTools/language/nl_NL/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/nl_NL/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/nl_NL/plugin.lang.php b/plugins/AdminTools/language/nl_NL/plugin.lang.php deleted file mode 100755 index 8f5ad2a2e..000000000 --- a/plugins/AdminTools/language/nl_NL/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Bekijken als %s.'; -$lang['Show SQL queries'] = 'Toon SQL queries'; -$lang['View as'] = 'Bekijk als'; -$lang['Quick edit'] = 'Snel bewerken'; -$lang['Combine JS&CSS'] = 'Combineer JS&CSS'; -$lang['Saved'] = 'Opgeslagen'; -$lang['Closed icon position'] = 'Positie van pictogram gesloten'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Geef foto-eigenaren toegang tot Snel bewerken, zelfs als ze geen administrator zijn.'; -$lang['Open toolbar by default'] = 'Open standaard de werkbalk'; -$lang['left'] = 'links'; -$lang['right'] = 'rechts'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/pl_PL/description.txt b/plugins/AdminTools/language/pl_PL/description.txt deleted file mode 100755 index 32e0b7b31..000000000 --- a/plugins/AdminTools/language/pl_PL/description.txt +++ /dev/null @@ -1 +0,0 @@ -Wykonuj niektóre zadania admina wprost z ogólnodostępnych stron \ No newline at end of file diff --git a/plugins/AdminTools/language/pl_PL/index.php b/plugins/AdminTools/language/pl_PL/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/pl_PL/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/pl_PL/plugin.lang.php b/plugins/AdminTools/language/pl_PL/plugin.lang.php deleted file mode 100755 index afc84b06d..000000000 --- a/plugins/AdminTools/language/pl_PL/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'Oglądasz jako %s'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Przyznaj dostęp do szybkiej edycji właścicielom zdjęć nawet, gdy nie są administratorami'; -$lang['Open toolbar by default'] = 'Domyślnie otwieraj pasek narzędzi'; -$lang['left'] = 'lewo'; -$lang['right'] = 'prawo'; -$lang['Closed icon position'] = 'Stała pozycja ikony.'; \ No newline at end of file diff --git a/plugins/AdminTools/language/pt_BR/description.txt b/plugins/AdminTools/language/pt_BR/description.txt deleted file mode 100755 index cda8f883f..000000000 --- a/plugins/AdminTools/language/pt_BR/description.txt +++ /dev/null @@ -1 +0,0 @@ -Faça algumas tarefas de administração a partir das páginas públicas \ No newline at end of file diff --git a/plugins/AdminTools/language/pt_BR/index.php b/plugins/AdminTools/language/pt_BR/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/pt_BR/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/pt_BR/plugin.lang.php b/plugins/AdminTools/language/pt_BR/plugin.lang.php deleted file mode 100755 index 6809b2352..000000000 --- a/plugins/AdminTools/language/pt_BR/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Visulaizar como %s'; -$lang['Saved'] = 'Salvo'; -$lang['Closed icon position'] = 'Posição ícone Fechado'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Dar acesso a edição rápida para proprietários de fotografias, mesmo se eles não forem admin'; -$lang['Open toolbar by default'] = 'Abrir barra de ferramentas por padrão'; -$lang['left'] = 'esquerda'; -$lang['right'] = 'direita'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/pt_PT/description.txt b/plugins/AdminTools/language/pt_PT/description.txt deleted file mode 100755 index 7b5eab56e..000000000 --- a/plugins/AdminTools/language/pt_PT/description.txt +++ /dev/null @@ -1 +0,0 @@ -Faça alguma tarefa administrativa das páginas públicas \ No newline at end of file diff --git a/plugins/AdminTools/language/pt_PT/index.php b/plugins/AdminTools/language/pt_PT/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/pt_PT/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/pt_PT/plugin.lang.php b/plugins/AdminTools/language/pt_PT/plugin.lang.php deleted file mode 100755 index 0c4b86e1c..000000000 --- a/plugins/AdminTools/language/pt_PT/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Vendo como %s.'; -$lang['Saved'] = 'Salvo'; -$lang['Closed icon position'] = 'Posição do icon encerrada'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Permite acesso aos proprietários da foto para edição rápida mesmo não sendo administradores'; -$lang['Open toolbar by default'] = 'Abrir, por defeito, a barra de ferramentas '; -$lang['left'] = 'Esquerda'; -$lang['right'] = 'Direita'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/ro_RO/description.txt b/plugins/AdminTools/language/ro_RO/description.txt deleted file mode 100755 index 240f7316d..000000000 --- a/plugins/AdminTools/language/ro_RO/description.txt +++ /dev/null @@ -1 +0,0 @@ -Execută anumite sarcini administrative din paginile publice \ No newline at end of file diff --git a/plugins/AdminTools/language/ro_RO/index.php b/plugins/AdminTools/language/ro_RO/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/ro_RO/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/ro_RO/plugin.lang.php b/plugins/AdminTools/language/ro_RO/plugin.lang.php deleted file mode 100755 index 6ead74570..000000000 --- a/plugins/AdminTools/language/ro_RO/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Vizualizare ca %s.'; -$lang['Closed icon position'] = 'Pozitia pictogramelor inchisa'; -$lang['right'] = 'Dreapta'; -$lang['left'] = 'Stanga'; -$lang['Open toolbar by default'] = 'Deschide implicit bara de instrumente'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Ofera detinatorilor de fotografii dreptul de a edita, chiar daca nu sunt administratori'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/ru_RU/description.txt b/plugins/AdminTools/language/ru_RU/description.txt deleted file mode 100755 index ddd15a835..000000000 --- a/plugins/AdminTools/language/ru_RU/description.txt +++ /dev/null @@ -1 +0,0 @@ -Позволяет выполнять некоторые администраторские функции с публичных страниц \ No newline at end of file diff --git a/plugins/AdminTools/language/ru_RU/index.php b/plugins/AdminTools/language/ru_RU/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/ru_RU/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/ru_RU/plugin.lang.php b/plugins/AdminTools/language/ru_RU/plugin.lang.php deleted file mode 100755 index 4a29a7b19..000000000 --- a/plugins/AdminTools/language/ru_RU/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Просмотр как %s.'; -$lang['Saved'] = 'Сохранено'; -$lang['Closed icon position'] = 'Закрытое положение иконки'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Предоставить доступ для быстрого редактирования изображений их владельцам, даже если они не админы'; -$lang['Open toolbar by default'] = 'Открыть панель инструментов по умолчанию'; -$lang['left'] = 'слева'; -$lang['right'] = 'справа'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/sh_RS/description.txt b/plugins/AdminTools/language/sh_RS/description.txt deleted file mode 100755 index 550ccd93d..000000000 --- a/plugins/AdminTools/language/sh_RS/description.txt +++ /dev/null @@ -1 +0,0 @@ -Omogućuje obavljanje nekih administrativnih zadataka sa javnih stranica. \ No newline at end of file diff --git a/plugins/AdminTools/language/sh_RS/index.php b/plugins/AdminTools/language/sh_RS/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/sh_RS/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/sh_RS/plugin.lang.php b/plugins/AdminTools/language/sh_RS/plugin.lang.php deleted file mode 100755 index ce77c8893..000000000 --- a/plugins/AdminTools/language/sh_RS/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'Prikazujem kao %s.'; -$lang['left'] = 'levo'; -$lang['right'] = 'desno'; \ No newline at end of file diff --git a/plugins/AdminTools/language/sk_SK/description.txt b/plugins/AdminTools/language/sk_SK/description.txt deleted file mode 100755 index d59177d81..000000000 --- a/plugins/AdminTools/language/sk_SK/description.txt +++ /dev/null @@ -1 +0,0 @@ -Niektoré administrátorské úlohy z verejných stránok \ No newline at end of file diff --git a/plugins/AdminTools/language/sk_SK/index.php b/plugins/AdminTools/language/sk_SK/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/sk_SK/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/sk_SK/plugin.lang.php b/plugins/AdminTools/language/sk_SK/plugin.lang.php deleted file mode 100755 index a8d5c51b9..000000000 --- a/plugins/AdminTools/language/sk_SK/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Predviesť ako %s.'; -$lang['View as'] = 'Ukázať ako'; -$lang['Show SQL queries'] = 'Zobraziť SQL otázky'; -$lang['Save visit in history'] = 'Uložiť návštevy v histórii'; -$lang['Save'] = 'Uložiť'; -$lang['Revert'] = 'Späť'; -$lang['Quick edit'] = 'Rýchla editácia'; -$lang['Properties page'] = 'Vlastnosti stránky'; -$lang['Debug template'] = 'Odstrániť chyby šablón'; -$lang['Debug languages'] = 'Odstrániť chyby jazykov'; -$lang['Combine JS&CSS'] = 'Kombinovať JS&CSS'; -$lang['Saved'] = 'Uložené'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Poskytnúť prístup na rýchlu úpravu fotiek majiteľom, ak nie sú adminom'; -$lang['Open toolbar by default'] = 'Otvoriť prednastavený panel nástrojov'; -$lang['Closed icon position'] = 'Uzavrieť umiestnenie ikony'; -$lang['right'] = 'vpravo'; -$lang['left'] = 'vľavo'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/sl_SI/description.txt b/plugins/AdminTools/language/sl_SI/description.txt deleted file mode 100755 index 40be2470b..000000000 --- a/plugins/AdminTools/language/sl_SI/description.txt +++ /dev/null @@ -1 +0,0 @@ -Administracija javnih strani \ No newline at end of file diff --git a/plugins/AdminTools/language/sl_SI/index.php b/plugins/AdminTools/language/sl_SI/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/sl_SI/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/sl_SI/plugin.lang.php b/plugins/AdminTools/language/sl_SI/plugin.lang.php deleted file mode 100755 index 7d1c08fef..000000000 --- a/plugins/AdminTools/language/sl_SI/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Ogled kot %s.'; -$lang['right'] = 'desno'; -$lang['left'] = 'levo'; -$lang['View as'] = 'Poglej kot'; -$lang['Show SQL queries'] = 'Prikaži SQL poizvedbe'; -$lang['Saved'] = 'Shranjeno'; -$lang['Save'] = 'Shrani'; -$lang['Closed icon position'] = 'Zaprta pozicija ikone'; -$lang['Debug languages'] = 'Razhroščevalni jeziki'; -$lang['Debug template'] = 'Razhroščevalna predloga'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Dovoli dostop do hitrega urejanja fotografij lastnikom tudi če nimajo administratorskih pravic'; -$lang['Quick edit'] = 'Hitro urejanje'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/sr_RS/description.txt b/plugins/AdminTools/language/sr_RS/description.txt deleted file mode 100755 index 45d42b114..000000000 --- a/plugins/AdminTools/language/sr_RS/description.txt +++ /dev/null @@ -1 +0,0 @@ -Омогућује обављање неких административних задатака са јавних страница. \ No newline at end of file diff --git a/plugins/AdminTools/language/sr_RS/index.php b/plugins/AdminTools/language/sr_RS/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/sr_RS/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/sr_RS/plugin.lang.php b/plugins/AdminTools/language/sr_RS/plugin.lang.php deleted file mode 100755 index daea1e9d7..000000000 --- a/plugins/AdminTools/language/sr_RS/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'Приказујем као %s.'; -$lang['left'] = 'лево'; -$lang['right'] = 'десно'; \ No newline at end of file diff --git a/plugins/AdminTools/language/sv_SE/description.txt b/plugins/AdminTools/language/sv_SE/description.txt deleted file mode 100755 index 52525bf68..000000000 --- a/plugins/AdminTools/language/sv_SE/description.txt +++ /dev/null @@ -1 +0,0 @@ -Admin tools ger möjlighet att utföra vissa adminuppgifter från den publika sidan. \ No newline at end of file diff --git a/plugins/AdminTools/language/sv_SE/index.php b/plugins/AdminTools/language/sv_SE/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/sv_SE/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/sv_SE/plugin.lang.php b/plugins/AdminTools/language/sv_SE/plugin.lang.php deleted file mode 100755 index cd398684a..000000000 --- a/plugins/AdminTools/language/sv_SE/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Visas som %s.'; -$lang['left'] = 'Vänster'; -$lang['right'] = 'Höger'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/ta_IN/description.txt b/plugins/AdminTools/language/ta_IN/description.txt deleted file mode 100755 index 820d66fbd..000000000 --- a/plugins/AdminTools/language/ta_IN/description.txt +++ /dev/null @@ -1 +0,0 @@ -பொது பக்கங்களில் இருந்து சில நிர்வாக பணி செய்ய \ No newline at end of file diff --git a/plugins/AdminTools/language/ta_IN/index.php b/plugins/AdminTools/language/ta_IN/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/ta_IN/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/ta_IN/plugin.lang.php b/plugins/AdminTools/language/ta_IN/plugin.lang.php deleted file mode 100755 index 6cec3af3a..000000000 --- a/plugins/AdminTools/language/ta_IN/plugin.lang.php +++ /dev/null @@ -1,24 +0,0 @@ - diff --git a/plugins/AdminTools/language/tr_TR/plugin.lang.php b/plugins/AdminTools/language/tr_TR/plugin.lang.php deleted file mode 100755 index 60f54ac94..000000000 --- a/plugins/AdminTools/language/tr_TR/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = '%s olarak görülüyor.'; -$lang['Revert'] = 'Geri al'; -$lang['Debug template'] = 'Hata ayıklama şablonu'; -$lang['Debug languages'] = 'Hata ayıklama dili'; -$lang['Properties page'] = 'Özellikler sayfası'; -$lang['Combine JS&CSS'] = 'JS&CSS Birleştir'; -$lang['Show SQL queries'] = 'SQL sorgularını göster'; -$lang['Save visit in history'] = 'Ziyareti geçmiş günlüğüne kaydet'; -$lang['Save'] = 'Kaydet'; -$lang['Quick edit'] = 'Hızlı düzenle'; -$lang['Saved'] = 'Kaydedildi'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Yönetici olmasalar dahi fotoğraf sahiplerine hızlı düzenleme izni ver'; -$lang['right'] = 'sağ'; -$lang['left'] = 'sol'; -$lang['Open toolbar by default'] = 'Araç çubuğunu varsayılan olarak aç'; -$lang['Closed icon position'] = 'Seçilen küçük resim yeri'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/uk_UA/description.txt b/plugins/AdminTools/language/uk_UA/description.txt deleted file mode 100755 index b8f869e93..000000000 --- a/plugins/AdminTools/language/uk_UA/description.txt +++ /dev/null @@ -1 +0,0 @@ -Зробити деякі завдання адміністратора від загальнодоступних сторінок. \ No newline at end of file diff --git a/plugins/AdminTools/language/uk_UA/index.php b/plugins/AdminTools/language/uk_UA/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/uk_UA/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/uk_UA/plugin.lang.php b/plugins/AdminTools/language/uk_UA/plugin.lang.php deleted file mode 100755 index cfbc3e352..000000000 --- a/plugins/AdminTools/language/uk_UA/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = 'Перегляд у вигляді %s.'; -$lang['Closed icon position'] = 'Закрита позиція значка'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Надати доступ до швидкого редагування фото власникам, навіть якщо вони не адміністратори'; -$lang['Open toolbar by default'] = 'За замовчуванням відкрита панель інструментів '; -$lang['left'] = 'ліво'; -$lang['right'] = 'право'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/vi_VN/description.txt b/plugins/AdminTools/language/vi_VN/description.txt deleted file mode 100644 index e821841da..000000000 --- a/plugins/AdminTools/language/vi_VN/description.txt +++ /dev/null @@ -1,2 +0,0 @@ -Do some admin task from the public pages -Thực thi một vài nhiệm vụ quản trị từ các trang công khai \ No newline at end of file diff --git a/plugins/AdminTools/language/vi_VN/index.php b/plugins/AdminTools/language/vi_VN/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/vi_VN/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/vi_VN/plugin.lang.php b/plugins/AdminTools/language/vi_VN/plugin.lang.php deleted file mode 100755 index 80b501059..000000000 --- a/plugins/AdminTools/language/vi_VN/plugin.lang.php +++ /dev/null @@ -1,39 +0,0 @@ -%s.'] = 'Đang xem dưới dạng %s.'; -$lang['Saved'] = 'Đã lưu'; -$lang['Closed icon position'] = 'Vị trí biểu tượng đã đóng'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = 'Cho truy xuất để chỉnh sửa nhanh hình ảnh với cả người dùng không phải là quản trị viên'; -$lang['Open toolbar by default'] = 'Mở thanh công cụ một cách mặc định'; -$lang['left'] = 'trái'; -$lang['right'] = 'phải'; \ No newline at end of file diff --git a/plugins/AdminTools/language/zh_CN/description.txt b/plugins/AdminTools/language/zh_CN/description.txt deleted file mode 100755 index cea835cde..000000000 --- a/plugins/AdminTools/language/zh_CN/description.txt +++ /dev/null @@ -1 +0,0 @@ -于前台页面执行一些管理任务。 \ No newline at end of file diff --git a/plugins/AdminTools/language/zh_CN/index.php b/plugins/AdminTools/language/zh_CN/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/zh_CN/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/zh_CN/plugin.lang.php b/plugins/AdminTools/language/zh_CN/plugin.lang.php deleted file mode 100755 index 37702a175..000000000 --- a/plugins/AdminTools/language/zh_CN/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = '正以…查看: %s.'; -$lang['Saved'] = '保存'; -$lang['Closed icon position'] = '关闭图标位置'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = '给予图片所有者快速修改权限,即使他们不是管理员'; -$lang['Open toolbar by default'] = '默认打开工具栏'; -$lang['left'] = '左'; -$lang['right'] = '右'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/zh_HK/description.txt b/plugins/AdminTools/language/zh_HK/description.txt deleted file mode 100755 index 095ac352f..000000000 --- a/plugins/AdminTools/language/zh_HK/description.txt +++ /dev/null @@ -1 +0,0 @@ -在公開頁面做一些管理任務 \ No newline at end of file diff --git a/plugins/AdminTools/language/zh_HK/index.php b/plugins/AdminTools/language/zh_HK/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/zh_HK/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/zh_HK/plugin.lang.php b/plugins/AdminTools/language/zh_HK/plugin.lang.php deleted file mode 100755 index 8c764cce1..000000000 --- a/plugins/AdminTools/language/zh_HK/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = '查看為%s的。'; -$lang['Saved'] = '已儲存'; -$lang['Closed icon position'] = '關閉圖標位置'; -$lang['Give access to quick edit to photo owners even if they are not admin'] = '給訪客快速編輯為照片擁有人,即使他們不是管理員'; -$lang['Open toolbar by default'] = '默認打開工具欄'; -$lang['left'] = '左'; -$lang['right'] = '右'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/language/zh_TW/description.txt b/plugins/AdminTools/language/zh_TW/description.txt deleted file mode 100755 index f00b68e96..000000000 --- a/plugins/AdminTools/language/zh_TW/description.txt +++ /dev/null @@ -1 +0,0 @@ -在公共頁面做一些管理任務 \ No newline at end of file diff --git a/plugins/AdminTools/language/zh_TW/index.php b/plugins/AdminTools/language/zh_TW/index.php deleted file mode 100644 index ec6605317..000000000 --- a/plugins/AdminTools/language/zh_TW/index.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/plugins/AdminTools/language/zh_TW/plugin.lang.php b/plugins/AdminTools/language/zh_TW/plugin.lang.php deleted file mode 100755 index e94bcf9c2..000000000 --- a/plugins/AdminTools/language/zh_TW/plugin.lang.php +++ /dev/null @@ -1,40 +0,0 @@ -%s.'] = '查看為 %s.'; -$lang['left'] = '左'; -$lang['right'] = '右'; -?> \ No newline at end of file diff --git a/plugins/AdminTools/main.inc.php b/plugins/AdminTools/main.inc.php deleted file mode 100644 index 5928dd596..000000000 --- a/plugins/AdminTools/main.inc.php +++ /dev/null @@ -1,63 +0,0 @@ - 'Admin Tools', - 'URL' => ADMINTOOLS_ADMIN, - ); - - return $menu; -} diff --git a/plugins/AdminTools/maintain.class.php b/plugins/AdminTools/maintain.class.php deleted file mode 100644 index 2e89968fd..000000000 --- a/plugins/AdminTools/maintain.class.php +++ /dev/null @@ -1,31 +0,0 @@ - true, - 'closed_position' => 'left', - 'public_quick_edit' => true, - ); - - function install($plugin_version, &$errors=array()) - { - global $conf; - - if (empty($conf['AdminTools'])) - { - conf_update_param('AdminTools', $this->default_conf, true); - } - } - - function update($old_version, $new_version, &$errors=array()) - { - $this->install($new_version, $errors); - } - - function uninstall() - { - conf_delete_param('AdminTools'); - } -} diff --git a/plugins/AdminTools/template/admin.tpl b/plugins/AdminTools/template/admin.tpl deleted file mode 100644 index b82b3fd24..000000000 --- a/plugins/AdminTools/template/admin.tpl +++ /dev/null @@ -1,60 +0,0 @@ -{html_style} -.graphicalCheckbox { - font-size:16px; - line-height:16px; -} - -.graphicalCheckbox + input { - display:none; -} -{/html_style} - -{footer_script} -jQuery('#ato-config input[type=checkbox]').change(function() { - jQuery(this).prev().toggleClass('icon-check icon-check-empty'); -}); -jQuery('#ato-config input[type=radio]').change(function() { - jQuery('#ato-config input[type=radio][name='+ $(this).attr('name') +']').prev().toggleClass('icon-check icon-check-empty'); -}); -{/footer_script} - -
' + // Absolutely positioned blinky cursor - '
' : "- - - -"), text, ""); - } - gutter.style.display = "none"; - gutterText.innerHTML = html.join(""); - var minwidth = String(lines.length).length, firstNode = gutterText.firstChild, val = eltText(firstNode), pad = ""; - while (val.length + pad.length < minwidth) pad += "\u00a0"; - if (pad) firstNode.insertBefore(document.createTextNode(pad), firstNode.firstChild); - gutter.style.display = ""; - lineSpace.style.marginLeft = gutter.offsetWidth + "px"; - } - function updateCursor() { - var head = sel.inverted ? sel.from : sel.to; - var x = charX(head.line, head.ch) + "px", y = (head.line - showingFrom) * lineHeight() + "px"; - inputDiv.style.top = y; inputDiv.style.left = x; - if (posEq(sel.from, sel.to)) { - cursor.style.top = y; cursor.style.left = x; - cursor.style.display = ""; - } - else cursor.style.display = "none"; - } - - // Update the selection. Last two args are only used by - // updateLines, since they have to be expressed in the line - // numbers before the update. - function setSelection(from, to, oldFrom, oldTo) { - if (posEq(sel.from, from) && posEq(sel.to, to)) return; - var sh = shiftSelecting && clipPos(shiftSelecting); - if (posLess(to, from)) {var tmp = to; to = from; from = tmp;} - if (sh) { - if (posLess(sh, from)) from = sh; - else if (posLess(to, sh)) to = sh; - } - - var startEq = posEq(sel.to, to), endEq = posEq(sel.from, from); - if (posEq(from, to)) sel.inverted = false; - else if (startEq && !endEq) sel.inverted = true; - else if (endEq && !startEq) sel.inverted = false; - - // Some ugly logic used to only mark the lines that actually did - // see a change in selection as changed, rather than the whole - // selected range. - if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;} - if (posEq(from, to)) { - if (!posEq(sel.from, sel.to)) - changes.push({from: oldFrom, to: oldTo + 1}); - } - else if (posEq(sel.from, sel.to)) { - changes.push({from: from.line, to: to.line + 1}); - } - else { - if (!posEq(from, sel.from)) { - if (from.line < oldFrom) - changes.push({from: from.line, to: Math.min(to.line, oldFrom) + 1}); - else - changes.push({from: oldFrom, to: Math.min(oldTo, from.line) + 1}); - } - if (!posEq(to, sel.to)) { - if (to.line < oldTo) - changes.push({from: Math.max(oldFrom, from.line), to: oldTo + 1}); - else - changes.push({from: Math.max(from.line, oldTo), to: to.line + 1}); - } - } - sel.from = from; sel.to = to; - selectionChanged = true; - } - function setCursor(line, ch) { - var pos = clipPos({line: line, ch: ch || 0}); - setSelection(pos, pos); - } - - function clipLine(n) {return Math.max(0, Math.min(n, lines.length-1));} - function clipPos(pos) { - if (pos.line < 0) return {line: 0, ch: 0}; - if (pos.line >= lines.length) return {line: lines.length-1, ch: lines[lines.length-1].text.length}; - var ch = pos.ch, linelen = lines[pos.line].text.length; - if (ch == null || ch > linelen) return {line: pos.line, ch: linelen}; - else if (ch < 0) return {line: pos.line, ch: 0}; - else return pos; - } - - function scrollPage(down) { - var linesPerPage = Math.floor(wrapper.clientHeight / lineHeight()), head = sel.inverted ? sel.from : sel.to; - setCursor(head.line + (Math.max(linesPerPage - 1, 1) * (down ? 1 : -1)), head.ch); - } - function scrollEnd(top) { - setCursor(top ? 0 : lines.length - 1); - } - function selectAll() { - var endLine = lines.length - 1; - setSelection({line: 0, ch: 0}, {line: endLine, ch: lines[endLine].text.length}); - } - function selectWordAt(pos) { - var line = lines[pos.line].text; - var start = pos.ch, end = pos.ch; - while (start > 0 && /\w/.test(line.charAt(start - 1))) --start; - while (end < line.length - 1 && /\w/.test(line.charAt(end))) ++end; - setSelection({line: pos.line, ch: start}, {line: pos.line, ch: end}); - } - function handleEnter() { - replaceSelection("\n", "end"); - if (options.enterMode != "flat") - indentLine(sel.from.line, options.enterMode == "keep" ? "prev" : "smart"); - } - function handleTab(shift) { - shiftSelecting = null; - switch (options.tabMode) { - case "default": - return false; - case "indent": - for (var i = sel.from.line, e = sel.to.line; i <= e; ++i) indentLine(i, "smart"); - break; - case "classic": - if (posEq(sel.from, sel.to)) { - if (shift) indentLine(sel.from.line, "smart"); - else replaceSelection("\t", "end"); - break; - } - case "shift": - for (var i = sel.from.line, e = sel.to.line; i <= e; ++i) indentLine(i, shift ? "subtract" : "add"); - break; - } - return true; - } - - function indentLine(n, how) { - if (how == "smart") { - if (!mode.indent) how = "prev"; - else var state = getStateBefore(n); - } - - var line = lines[n], curSpace = line.indentation(), curSpaceString = line.text.match(/^\s*/)[0], indentation; - if (how == "prev") { - if (n) indentation = lines[n-1].indentation(); - else indentation = 0; - } - else if (how == "smart") indentation = mode.indent(state, line.text.slice(curSpaceString.length)); - else if (how == "add") indentation = curSpace + options.indentUnit; - else if (how == "subtract") indentation = curSpace - options.indentUnit; - indentation = Math.max(0, indentation); - var diff = indentation - curSpace; - - if (!diff) { - if (sel.from.line != n && sel.to.line != n) return; - var indentString = curSpaceString; - } - else { - var indentString = "", pos = 0; - if (options.indentWithTabs) - for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += "\t";} - while (pos < indentation) {++pos; indentString += " ";} - } - - replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length}); - } - - function loadMode() { - mode = CodeMirror.getMode(options, options.mode); - for (var i = 0, l = lines.length; i < l; ++i) - lines[i].stateAfter = null; - work = [0]; - } - function gutterChanged() { - var visible = options.gutter || options.lineNumbers; - gutter.style.display = visible ? "" : "none"; - if (visible) updateGutter(); - else lineDiv.parentNode.style.marginLeft = 0; - } - - function markText(from, to, className) { - from = clipPos(from); to = clipPos(to); - var accum = []; - function add(line, from, to, className) { - var line = lines[line], mark = line.addMark(from, to, className); - mark.line = line; - accum.push(mark); - } - if (from.line == to.line) add(from.line, from.ch, to.ch, className); - else { - add(from.line, from.ch, null, className); - for (var i = from.line + 1, e = to.line; i < e; ++i) - add(i, 0, null, className); - add(to.line, 0, to.ch, className); - } - changes.push({from: from.line, to: to.line + 1}); - return function() { - var start, end; - for (var i = 0; i < accum.length; ++i) { - var mark = accum[i], found = indexOf(lines, mark.line); - mark.line.removeMark(mark); - if (found > -1) { - if (start == null) start = found; - end = found; - } - } - if (start != null) changes.push({from: start, to: end + 1}); - }; - } - - function addGutterMarker(line, text, className) { - if (typeof line == "number") line = lines[clipLine(line)]; - line.gutterMarker = {text: text, style: className}; - updateGutter(); - return line; - } - function removeGutterMarker(line) { - if (typeof line == "number") line = lines[clipLine(line)]; - line.gutterMarker = null; - updateGutter(); - } - function setLineClass(line, className) { - if (typeof line == "number") { - var no = line; - line = lines[clipLine(line)]; - } - else { - var no = indexOf(lines, line); - if (no == -1) return null; - } - line.className = className; - changes.push({from: no, to: no + 1}); - return line; - } - - function lineInfo(line) { - if (typeof line == "number") { - var n = line; - line = lines[line]; - if (!line) return null; - } - else { - var n = indexOf(lines, line); - if (n == -1) return null; - } - var marker = line.gutterMarker; - return {line: n, text: line.text, markerText: marker && marker.text, markerClass: marker && marker.style}; - } - - // These are used to go from pixel positions to character - // positions, taking tabs into account. - function charX(line, pos) { - var text = lines[line].text, span = measure.firstChild; - if (text.lastIndexOf("\t", pos) == -1) return pos * charWidth(); - var old = span.firstChild.nodeValue; - try { - span.firstChild.nodeValue = text.slice(0, pos); - return span.offsetWidth; - } finally {span.firstChild.nodeValue = old;} - } - function charFromX(line, x) { - var text = lines[line].text, cw = charWidth(); - if (x <= 0) return 0; - if (text.indexOf("\t") == -1) return Math.min(text.length, Math.round(x / cw)); - var mspan = measure.firstChild, mtext = mspan.firstChild, old = mtext.nodeValue; - try { - mtext.nodeValue = text; - var from = 0, fromX = 0, to = text.length, toX = mspan.offsetWidth; - if (x > toX) return to; - for (;;) { - if (to - from <= 1) return (toX - x > x - fromX) ? from : to; - var middle = Math.ceil((from + to) / 2); - mtext.nodeValue = text.slice(0, middle); - var curX = mspan.offsetWidth; - if (curX > x) {to = middle; toX = curX;} - else {from = middle; fromX = curX;} - } - } finally {mtext.nodeValue = old;} - } - - function localCoords(pos, inLineWrap) { - var lh = lineHeight(), line = pos.line - (inLineWrap ? showingFrom : 0); - return {x: charX(pos.line, pos.ch), y: line * lh, yBot: (line + 1) * lh}; - } - function pageCoords(pos) { - var local = localCoords(pos, true), off = eltOffset(lineSpace); - return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot}; - } - - function lineHeight() { - var nlines = lineDiv.childNodes.length; - if (nlines) return lineDiv.offsetHeight / nlines; - else return measure.firstChild.offsetHeight || 1; - } - function charWidth() {return (measure.firstChild.offsetWidth || 320) / 40;} - function paddingTop() {return lineSpace.offsetTop;} - function paddingLeft() {return lineSpace.offsetLeft;} - - function posFromMouse(e, liberal) { - var off = eltOffset(lineSpace), - x = e.pageX() - off.left, - y = e.pageY() - off.top; - if (!liberal && e.target() != lineSpace.parentNode && !(e.target() == wrapper && y > (lines.length * lineHeight()))) - for (var n = e.target(); n != lineDiv && n != cursor; n = n.parentNode) - if (!n || n == wrapper) return null; - var line = showingFrom + Math.floor(y / lineHeight()); - return clipPos({line: line, ch: charFromX(clipLine(line), x)}); - } - function onContextMenu(e) { - var pos = posFromMouse(e); - if (!pos || window.opera) return; // Opera is difficult. - if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to)) - setCursor(pos.line, pos.ch); - - var oldCSS = input.style.cssText; - input.style.cssText = "position: fixed; width: 30px; height: 30px; top: " + (e.pageY() - 1) + - "px; left: " + (e.pageX() - 1) + "px; z-index: 1000; background: white; " + - "border-width: 0; outline: none; overflow: hidden;"; - var val = input.value = getSelection(); - input.focus(); - setSelRange(input, 0, val.length); - if (gecko) e.stop(); - leaveInputAlone = true; - setTimeout(function() { - if (input.value != val) operation(replaceSelection)(input.value, "end"); - input.style.cssText = oldCSS; - leaveInputAlone = false; - prepareInput(); - slowPoll(); - }, 50); - } - - // Cursor-blinking - function restartBlink() { - clearInterval(blinker); - var on = true; - cursor.style.visibility = ""; - blinker = setInterval(function() { - cursor.style.visibility = (on = !on) ? "" : "hidden"; - }, 650); - } - - var matching = {"(": ")>", ")": "(<", "[": "]>", "]": "[<", "{": "}>", "}": "{<"}; - function matchBrackets(autoclear) { - var head = sel.inverted ? sel.from : sel.to, line = lines[head.line], pos = head.ch - 1; - var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)]; - if (!match) return; - var ch = match.charAt(0), forward = match.charAt(1) == ">", d = forward ? 1 : -1, st = line.styles; - for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2) - if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;} - - var stack = [line.text.charAt(pos)], re = /[(){}[\]]/; - function scan(line, from, to) { - if (!line.text) return; - var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur; - for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) { - var text = st[i]; - if (st[i+1] != null && st[i+1] != style) {pos += d * text.length; continue;} - for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) { - if (pos >= from && pos < to && re.test(cur = text.charAt(j))) { - var match = matching[cur]; - if (match.charAt(1) == ">" == forward) stack.push(cur); - else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false}; - else if (!stack.length) return {pos: pos, match: true}; - } - } - } - } - for (var i = head.line, e = forward ? Math.min(i + 50, lines.length) : Math.max(0, i - 50); i != e; i+=d) { - var line = lines[i], first = i == head.line; - var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length); - if (found) { - var style = found.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket"; - var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style), - two = markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style); - var clear = operation(function(){one(); two();}); - if (autoclear) setTimeout(clear, 800); - else bracketHighlighted = clear; - break; - } - } - } - - // Finds the line to start with when starting a parse. Tries to - // find a line with a stateAfter, so that it can start with a - // valid state. If that fails, it returns the line with the - // smallest indentation, which tends to need the least context to - // parse correctly. - function findStartLine(n) { - var minindent, minline; - for (var search = n, lim = n - 40; search > lim; --search) { - if (search == 0) return 0; - var line = lines[search-1]; - if (line.stateAfter) return search; - var indented = line.indentation(); - if (minline == null || minindent > indented) { - minline = search; - minindent = indented; - } - } - return minline; - } - function getStateBefore(n) { - var start = findStartLine(n), state = start && lines[start-1].stateAfter; - if (!state) state = startState(mode); - else state = copyState(mode, state); - for (var i = start; i < n; ++i) { - var line = lines[i]; - line.highlight(mode, state); - line.stateAfter = copyState(mode, state); - } - if (!lines[n].stateAfter) work.push(n); - return state; - } - function highlightWorker() { - var end = +new Date + options.workTime; - while (work.length) { - if (!lines[showingFrom].stateAfter) var task = showingFrom; - else var task = work.pop(); - if (task >= lines.length) continue; - var start = findStartLine(task), state = start && lines[start-1].stateAfter; - if (state) state = copyState(mode, state); - else state = startState(mode); - - for (var i = start, l = lines.length; i < l; ++i) { - var line = lines[i], hadState = line.stateAfter; - if (+new Date > end) { - work.push(i); - startWorker(options.workDelay); - changes.push({from: task, to: i}); - return; - } - var changed = line.highlight(mode, state); - line.stateAfter = copyState(mode, state); - if (hadState && !changed && line.text) break; - } - changes.push({from: task, to: i}); - } - } - function startWorker(time) { - if (!work.length) return; - highlight.set(time, operation(highlightWorker)); - } - - // Operations are used to wrap changes in such a way that each - // change won't have to update the cursor and display (which would - // be awkward, slow, and error-prone), but instead updates are - // batched and then all combined and executed at once. - function startOperation() { - updateInput = null; changes = []; textChanged = selectionChanged = false; - } - function endOperation() { - var reScroll = false; - if (selectionChanged) reScroll = !scrollCursorIntoView(); - if (changes.length) updateDisplay(changes); - else if (selectionChanged) updateCursor(); - if (reScroll) scrollCursorIntoView(); - if (selectionChanged) restartBlink(); - - // updateInput can be set to a boolean value to force/prevent an - // update. - if (!leaveInputAlone && (updateInput === true || (updateInput !== false && selectionChanged))) - prepareInput(); - - if (selectionChanged && options.onCursorActivity) - options.onCursorActivity(instance); - if (textChanged && options.onChange) - options.onChange(instance); - if (selectionChanged && options.matchBrackets) - setTimeout(operation(function() { - if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;} - matchBrackets(false); - }), 20); - } - var nestedOperation = 0; - function operation(f) { - return function() { - if (!nestedOperation++) startOperation(); - try {var result = f.apply(this, arguments);} - finally {if (!--nestedOperation) endOperation();} - return result; - }; - } - - function SearchCursor(query, pos, caseFold) { - this.atOccurrence = false; - if (caseFold == null) caseFold = typeof query == "string" && query == query.toLowerCase(); - - if (pos && typeof pos == "object") pos = clipPos(pos); - else pos = {line: 0, ch: 0}; - this.pos = {from: pos, to: pos}; - - // The matches method is filled in based on the type of query. - // It takes a position and a direction, and returns an object - // describing the next occurrence of the query, or null if no - // more matches were found. - if (typeof query != "string") // Regexp match - this.matches = function(reverse, pos) { - if (reverse) { - var line = lines[pos.line].text.slice(0, pos.ch), match = line.match(query), start = 0; - while (match) { - var ind = line.indexOf(match[0]); - start += ind; - line = line.slice(ind + 1); - var newmatch = line.match(query); - if (newmatch) match = newmatch; - else break; - } - } - else { - var line = lines[pos.line].text.slice(pos.ch), match = line.match(query), - start = match && pos.ch + line.indexOf(match[0]); - } - if (match) - return {from: {line: pos.line, ch: start}, - to: {line: pos.line, ch: start + match[0].length}, - match: match}; - }; - else { // String query - if (caseFold) query = query.toLowerCase(); - var fold = caseFold ? function(str){return str.toLowerCase();} : function(str){return str;}; - var target = query.split("\n"); - // Different methods for single-line and multi-line queries - if (target.length == 1) - this.matches = function(reverse, pos) { - var line = fold(lines[pos.line].text), len = query.length, match; - if (reverse ? (pos.ch >= len && (match = line.lastIndexOf(query, pos.ch - len)) != -1) - : (match = line.indexOf(query, pos.ch)) != -1) - return {from: {line: pos.line, ch: match}, - to: {line: pos.line, ch: match + len}}; - }; - else - this.matches = function(reverse, pos) { - var ln = pos.line, idx = (reverse ? target.length - 1 : 0), match = target[idx], line = fold(lines[ln].text); - var offsetA = (reverse ? line.indexOf(match) + match.length : line.lastIndexOf(match)); - if (reverse ? offsetA >= pos.ch || offsetA != match.length - : offsetA <= pos.ch || offsetA != line.length - match.length) - return; - for (;;) { - if (reverse ? !ln : ln == lines.length - 1) return; - line = fold(lines[ln += reverse ? -1 : 1].text); - match = target[reverse ? --idx : ++idx]; - if (idx > 0 && idx < target.length - 1) { - if (line != match) return; - else continue; - } - var offsetB = (reverse ? line.lastIndexOf(match) : line.indexOf(match) + match.length); - if (reverse ? offsetB != line.length - match.length : offsetB != match.length) - return; - var start = {line: pos.line, ch: offsetA}, end = {line: ln, ch: offsetB}; - return {from: reverse ? end : start, to: reverse ? start : end}; - } - }; - } - } - - SearchCursor.prototype = { - findNext: function() {return this.find(false);}, - findPrevious: function() {return this.find(true);}, - - find: function(reverse) { - var self = this, pos = clipPos(reverse ? this.pos.from : this.pos.to); - function savePosAndFail(line) { - var pos = {line: line, ch: 0}; - self.pos = {from: pos, to: pos}; - self.atOccurrence = false; - return false; - } - - for (;;) { - if (this.pos = this.matches(reverse, pos)) { - this.atOccurrence = true; - return this.pos.match || true; - } - if (reverse) { - if (!pos.line) return savePosAndFail(0); - pos = {line: pos.line-1, ch: lines[pos.line-1].text.length}; - } - else { - if (pos.line == lines.length - 1) return savePosAndFail(lines.length); - pos = {line: pos.line+1, ch: 0}; - } - } - }, - - from: function() {if (this.atOccurrence) return copyPos(this.pos.from);}, - to: function() {if (this.atOccurrence) return copyPos(this.pos.to);} - }; - - return instance; - } // (end of function CodeMirror) - - // The default configuration options. - CodeMirror.defaults = { - value: "", - mode: null, - indentUnit: 2, - indentWithTabs: false, - tabMode: "classic", - enterMode: "indent", - electricChars: true, - onKeyEvent: null, - lineNumbers: false, - gutter: false, - firstLineNumber: 1, - readOnly: false, - onChange: null, - onCursorActivity: null, - onGutterClick: null, - onFocus: null, onBlur: null, onScroll: null, - matchBrackets: false, - workTime: 100, - workDelay: 200, - undoDepth: 40, - tabindex: null - }; - - // Known modes, by name and by MIME - var modes = {}, mimeModes = {}; - CodeMirror.defineMode = function(name, mode) { - if (!CodeMirror.defaults.mode && name != "null") CodeMirror.defaults.mode = name; - modes[name] = mode; - }; - CodeMirror.defineMIME = function(mime, spec) { - mimeModes[mime] = spec; - }; - CodeMirror.getMode = function(options, spec) { - if (typeof spec == "string" && mimeModes.hasOwnProperty(spec)) - spec = mimeModes[spec]; - if (typeof spec == "string") - var mname = spec, config = {}; - else - var mname = spec.name, config = spec; - var mfactory = modes[mname]; - if (!mfactory) { - if (window.console) console.warn("No mode " + mname + " found, falling back to plain text."); - return CodeMirror.getMode(options, "text/plain"); - } - return mfactory(options, config); - } - CodeMirror.listModes = function() { - var list = []; - for (var m in modes) - if (modes.propertyIsEnumerable(m)) list.push(m); - return list; - }; - CodeMirror.listMIMEs = function() { - var list = []; - for (var m in mimeModes) - if (mimeModes.propertyIsEnumerable(m)) list.push(m); - return list; - }; - - CodeMirror.fromTextArea = function(textarea, options) { - if (!options) options = {}; - options.value = textarea.value; - if (!options.tabindex && textarea.tabindex) - options.tabindex = textarea.tabindex; - - function save() {textarea.value = instance.getValue();} - if (textarea.form) { - // Deplorable hack to make the submit method do the right thing. - var rmSubmit = connect(textarea.form, "submit", save, true); - if (typeof textarea.form.submit == "function") { - var realSubmit = textarea.form.submit; - function wrappedSubmit() { - save(); - textarea.form.submit = realSubmit; - textarea.form.submit(); - textarea.form.submit = wrappedSubmit; - } - textarea.form.submit = wrappedSubmit; - } - } - - textarea.style.display = "none"; - var instance = CodeMirror(function(node) { - textarea.parentNode.insertBefore(node, textarea.nextSibling); - }, options); - instance.save = save; - instance.toTextArea = function() { - save(); - textarea.parentNode.removeChild(instance.getWrapperElement()); - textarea.style.display = ""; - if (textarea.form) { - rmSubmit(); - if (typeof textarea.form.submit == "function") - textarea.form.submit = realSubmit; - } - }; - return instance; - }; - - // Utility functions for working with state. Exported because modes - // sometimes need to do this. - function copyState(mode, state) { - if (state === true) return state; - if (mode.copyState) return mode.copyState(state); - var nstate = {}; - for (var n in state) { - var val = state[n]; - if (val instanceof Array) val = val.concat([]); - nstate[n] = val; - } - return nstate; - } - CodeMirror.startState = startState; - function startState(mode, a1, a2) { - return mode.startState ? mode.startState(a1, a2) : true; - } - CodeMirror.copyState = copyState; - - // The character stream used by a mode's parser. - function StringStream(string) { - this.pos = this.start = 0; - this.string = string; - } - StringStream.prototype = { - eol: function() {return this.pos >= this.string.length;}, - sol: function() {return this.pos == 0;}, - peek: function() {return this.string.charAt(this.pos);}, - next: function() { - if (this.pos < this.string.length) - return this.string.charAt(this.pos++); - }, - eat: function(match) { - var ch = this.string.charAt(this.pos); - if (typeof match == "string") var ok = ch == match; - else var ok = ch && (match.test ? match.test(ch) : match(ch)); - if (ok) {++this.pos; return ch;} - }, - eatWhile: function(match) { - var start = this.start; - while (this.eat(match)){} - return this.pos > start; - }, - eatSpace: function() { - var start = this.pos; - while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) ++this.pos; - return this.pos > start; - }, - skipToEnd: function() {this.pos = this.string.length;}, - skipTo: function(ch) { - var found = this.string.indexOf(ch, this.pos); - if (found > -1) {this.pos = found; return true;} - }, - backUp: function(n) {this.pos -= n;}, - column: function() {return countColumn(this.string, this.start);}, - indentation: function() {return countColumn(this.string);}, - match: function(pattern, consume, caseInsensitive) { - if (typeof pattern == "string") { - function cased(str) {return caseInsensitive ? str.toLowerCase() : str;} - if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) { - if (consume !== false) this.pos += pattern.length; - return true; - } - } - else { - var match = this.string.slice(this.pos).match(pattern); - if (match && consume !== false) this.pos += match[0].length; - return match; - } - }, - current: function(){return this.string.slice(this.start, this.pos);} - }; - - // Line objects. These hold state related to a line, including - // highlighting info (the styles array). - function Line(text, styles) { - this.styles = styles || [text, null]; - this.stateAfter = null; - this.text = text; - this.marked = this.gutterMarker = this.className = null; - } - Line.prototype = { - // Replace a piece of a line, keeping the styles around it intact. - replace: function(from, to, text) { - var st = [], mk = this.marked; - copyStyles(0, from, this.styles, st); - if (text) st.push(text, null); - copyStyles(to, this.text.length, this.styles, st); - this.styles = st; - this.text = this.text.slice(0, from) + text + this.text.slice(to); - this.stateAfter = null; - if (mk) { - var diff = text.length - (to - from), end = this.text.length; - function fix(n) {return n <= Math.min(to, to + diff) ? n : n + diff;} - for (var i = 0; i < mk.length; ++i) { - var mark = mk[i], del = false; - if (mark.from >= end) del = true; - else {mark.from = fix(mark.from); if (mark.to != null) mark.to = fix(mark.to);} - if (del || mark.from >= mark.to) {mk.splice(i, 1); i--;} - } - } - }, - // Split a line in two, again keeping styles intact. - split: function(pos, textBefore) { - var st = [textBefore, null]; - copyStyles(pos, this.text.length, this.styles, st); - return new Line(textBefore + this.text.slice(pos), st); - }, - addMark: function(from, to, style) { - var mk = this.marked, mark = {from: from, to: to, style: style}; - if (this.marked == null) this.marked = []; - this.marked.push(mark); - this.marked.sort(function(a, b){return a.from - b.from;}); - return mark; - }, - removeMark: function(mark) { - var mk = this.marked; - if (!mk) return; - for (var i = 0; i < mk.length; ++i) - if (mk[i] == mark) {mk.splice(i, 1); break;} - }, - // Run the given mode's parser over a line, update the styles - // array, which contains alternating fragments of text and CSS - // classes. - highlight: function(mode, state) { - var stream = new StringStream(this.text), st = this.styles, pos = 0, changed = false; - while (!stream.eol()) { - var style = mode.token(stream, state); - var substr = this.text.slice(stream.start, stream.pos); - stream.start = stream.pos; - if (pos && st[pos-1] == style) - st[pos-2] += substr; - else if (substr) { - if (!changed && st[pos] != substr || st[pos+1] != style) changed = true; - st[pos++] = substr; st[pos++] = style; - } - // Give up when line is ridiculously long - if (stream.pos > 5000) { - st[pos++] = this.text.slice(stream.pos); st[pos++] = null; - break; - } - } - if (st.length != pos) {st.length = pos; changed = true;} - return changed; - }, - // Fetch the parser token for a given character. Useful for hacks - // that want to inspect the mode state (say, for completion). - getTokenAt: function(mode, state, ch) { - var txt = this.text, stream = new StringStream(txt); - while (stream.pos < ch && !stream.eol()) { - stream.start = stream.pos; - var style = mode.token(stream, state); - } - return {start: stream.start, - end: stream.pos, - string: stream.current(), - className: style || null, - state: state}; - }, - indentation: function() {return countColumn(this.text);}, - // Produces an HTML fragment for the line, taking selection, - // marking, and highlighting into account. - getHTML: function(sfrom, sto, includePre) { - var html = []; - if (includePre) - html.push(this.className ? '': ""); - function span(text, style) { - if (!text) return; - if (style) html.push('', htmlEscape(text), ""); - else html.push(htmlEscape(text)); - } - var st = this.styles, allText = this.text, marked = this.marked; - if (sfrom == sto) sfrom = null; - - if (!allText) - span(" ", sfrom != null && sto == null ? "CodeMirror-selected" : null); - else if (!marked && sfrom == null) - for (var i = 0, e = st.length; i < e; i+=2) span(st[i], st[i+1]); - else { - var pos = 0, i = 0, text = "", style, sg = 0; - var markpos = -1, mark = null; - function nextMark() { - if (marked) { - markpos += 1; - mark = (markpos < marked.length) ? marked[markpos] : null; - } - } - nextMark(); - while (pos < allText.length) { - var upto = allText.length; - var extraStyle = ""; - if (sfrom != null) { - if (sfrom > pos) upto = sfrom; - else if (sto == null || sto > pos) { - extraStyle = " CodeMirror-selected"; - if (sto != null) upto = Math.min(upto, sto); - } - } - while (mark && mark.to != null && mark.to <= pos) nextMark(); - if (mark) { - if (mark.from > pos) upto = Math.min(upto, mark.from); - else { - extraStyle += " " + mark.style; - if (mark.to != null) upto = Math.min(upto, mark.to); - } - } - for (;;) { - var end = pos + text.length; - var apliedStyle = style; - if (extraStyle) apliedStyle = style ? style + extraStyle : extraStyle; - span(end > upto ? text.slice(0, upto - pos) : text, apliedStyle); - if (end >= upto) {text = text.slice(upto - pos); pos = upto; break;} - pos = end; - text = st[i++]; style = st[i++]; - } - } - if (sfrom != null && sto == null) span(" ", "CodeMirror-selected"); - } - if (includePre) html.push(""); - return html.join(""); - } - }; - // Utility used by replace and split above - function copyStyles(from, to, source, dest) { - for (var i = 0, pos = 0, state = 0; pos < to; i+=2) { - var part = source[i], end = pos + part.length; - if (state == 0) { - if (end > from) dest.push(part.slice(from - pos, Math.min(part.length, to - pos)), source[i+1]); - if (end >= from) state = 1; - } - else if (state == 1) { - if (end > to) dest.push(part.slice(0, to - pos), source[i+1]); - else dest.push(part, source[i+1]); - } - pos = end; - } - } - - // The history object 'chunks' changes that are made close together - // and at almost the same time into bigger undoable units. - function History() { - this.time = 0; - this.done = []; this.undone = []; - } - History.prototype = { - addChange: function(start, added, old) { - this.undone.length = 0; - var time = +new Date, last = this.done[this.done.length - 1]; - if (time - this.time > 400 || !last || - last.start > start + added || last.start + last.added < start - last.added + last.old.length) - this.done.push({start: start, added: added, old: old}); - else { - var oldoff = 0; - if (start < last.start) { - for (var i = last.start - start - 1; i >= 0; --i) - last.old.unshift(old[i]); - last.added += last.start - start; - last.start = start; - } - else if (last.start < start) { - oldoff = start - last.start; - added += oldoff; - } - for (var i = last.added - oldoff, e = old.length; i < e; ++i) - last.old.push(old[i]); - if (last.added < added) last.added = added; - } - this.time = time; - } - }; - - // Event stopping compatibility wrapper. - function stopEvent() { - if (this.preventDefault) {this.preventDefault(); this.stopPropagation();} - else {this.returnValue = false; this.cancelBubble = true;} - } - // Ensure an event has a stop method. - function addStop(event) { - if (!event.stop) event.stop = stopEvent; - return event; - } - - // Event wrapper, exposing the few operations we need. - function Event(orig) {this.e = orig;} - Event.prototype = { - stop: function() {stopEvent.call(this.e);}, - target: function() {return this.e.target || this.e.srcElement;}, - button: function() { - if (this.e.which) return this.e.which; - else if (this.e.button & 1) return 1; - else if (this.e.button & 2) return 3; - else if (this.e.button & 4) return 2; - }, - pageX: function() { - if (this.e.pageX != null) return this.e.pageX; - else return this.e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; - }, - pageY: function() { - if (this.e.pageY != null) return this.e.pageY; - else return this.e.clientY + document.body.scrollTop + document.documentElement.scrollTop; - } - }; - - // Event handler registration. If disconnect is true, it'll return a - // function that unregisters the handler. - function connect(node, type, handler, disconnect) { - function wrapHandler(event) {handler(new Event(event || window.event));} - if (typeof node.addEventListener == "function") { - node.addEventListener(type, wrapHandler, false); - if (disconnect) return function() {node.removeEventListener(type, wrapHandler, false);}; - } - else { - node.attachEvent("on" + type, wrapHandler); - if (disconnect) return function() {node.detachEvent("on" + type, wrapHandler);}; - } - } - - function Delayed() {this.id = null;} - Delayed.prototype = {set: function(ms, f) {clearTimeout(this.id); this.id = setTimeout(f, ms);}}; - - // Some IE versions don't preserve whitespace when setting the - // innerHTML of a PRE tag. - var badInnerHTML = (function() { - var pre = document.createElement("pre"); - pre.innerHTML = " "; return !pre.innerHTML; - })(); - - var gecko = /gecko\/\d{7}/i.test(navigator.userAgent); - - var lineSep = "\n"; - // Feature-detect whether newlines in textareas are converted to \r\n - (function () { - var te = document.createElement("textarea"); - te.value = "foo\nbar"; - if (te.value.indexOf("\r") > -1) lineSep = "\r\n"; - }()); - - var tabSize = 8; - var mac = /Mac/.test(navigator.platform); - var movementKeys = {}; - for (var i = 35; i <= 40; ++i) - movementKeys[i] = movementKeys["c" + i] = true; - - // Counts the column offset in a string, taking tabs into account. - // Used mostly to find indentation. - function countColumn(string, end) { - if (end == null) { - end = string.search(/[^\s\u00a0]/); - if (end == -1) end = string.length; - } - for (var i = 0, n = 0; i < end; ++i) { - if (string.charAt(i) == "\t") n += tabSize - (n % tabSize); - else ++n; - } - return n; - } - - // Find the position of an element by following the offsetParent chain. - function eltOffset(node) { - var x = 0, y = 0, n2 = node; - for (var n = node; n; n = n.offsetParent) {x += n.offsetLeft; y += n.offsetTop;} - for (var n = node; n != document.body; n = n.parentNode) {x -= n.scrollLeft; y -= n.scrollTop;} - return {left: x, top: y}; - } - // Get a node's text content. - function eltText(node) { - return node.textContent || node.innerText || node.nodeValue || ""; - } - - // Operations on {line, ch} objects. - function posEq(a, b) {return a.line == b.line && a.ch == b.ch;} - function posLess(a, b) {return a.line < b.line || (a.line == b.line && a.ch < b.ch);} - function copyPos(x) {return {line: x.line, ch: x.ch};} - - function htmlEscape(str) { - return str.replace(/[<&]/g, function(str) {return str == "&" ? "&" : "<";}); - } - - // Used to position the cursor after an undo/redo by finding the - // last edited character. - function editEnd(from, to) { - if (!to) return from ? from.length : 0; - if (!from) return to.length; - for (var i = from.length, j = to.length; i >= 0 && j >= 0; --i, --j) - if (from.charAt(i) != to.charAt(j)) break; - return j + 1; - } - - function indexOf(collection, elt) { - if (collection.indexOf) return collection.indexOf(elt); - for (var i = 0, e = collection.length; i < e; ++i) - if (collection[i] == elt) return i; - return -1; - } - - // See if "".split is the broken IE version, if so, provide an - // alternative way to split lines. - if ("\n\nb".split(/\n/).length != 3) - var splitLines = function(string) { - var pos = 0, nl, result = []; - while ((nl = string.indexOf("\n", pos)) > -1) { - result.push(string.slice(pos, string.charAt(nl-1) == "\r" ? nl - 1 : nl)); - pos = nl + 1; - } - result.push(string.slice(pos)); - return result; - }; - else - var splitLines = function(string){return string.split(/\r?\n/);}; - - // Sane model of finding and setting the selection in a textarea - if (window.getSelection) { - var selRange = function(te) { - try {return {start: te.selectionStart, end: te.selectionEnd};} - catch(e) {return null;} - }; - var setSelRange = function(te, start, end) { - try {te.setSelectionRange(start, end);} - catch(e) {} // Fails on Firefox when textarea isn't part of the document - }; - } - // IE model. Don't ask. - else { - var selRange = function(te) { - try {var range = document.selection.createRange();} - catch(e) {return null;} - if (!range || range.parentElement() != te) return null; - var val = te.value, len = val.length, localRange = te.createTextRange(); - localRange.moveToBookmark(range.getBookmark()); - var endRange = te.createTextRange(); - endRange.collapse(false); - - if (localRange.compareEndPoints("StartToEnd", endRange) > -1) - return {start: len, end: len}; - - var start = -localRange.moveStart("character", -len); - for (var i = val.indexOf("\r"); i > -1 && i < start; i = val.indexOf("\r", i+1), start++) {} - - if (localRange.compareEndPoints("EndToEnd", endRange) > -1) - return {start: start, end: len}; - - var end = -localRange.moveEnd("character", -len); - for (var i = val.indexOf("\r"); i > -1 && i < end; i = val.indexOf("\r", i+1), end++) {} - return {start: start, end: end}; - }; - var setSelRange = function(te, start, end) { - var range = te.createTextRange(); - range.collapse(true); - var endrange = range.duplicate(); - var newlines = 0, txt = te.value; - for (var pos = txt.indexOf("\n"); pos > -1 && pos < start; pos = txt.indexOf("\n", pos + 1)) - ++newlines; - range.move("character", start - newlines); - for (; pos > -1 && pos < end; pos = txt.indexOf("\n", pos + 1)) - ++newlines; - endrange.move("character", end - newlines); - range.setEndPoint("EndToEnd", endrange); - range.select(); - }; - } - - CodeMirror.defineMode("null", function() { - return {token: function(stream) {stream.skipToEnd();}}; - }); - CodeMirror.defineMIME("text/plain", "null"); - - return CodeMirror; -})(); diff --git a/plugins/LocalFilesEditor/codemirror/lib/overlay.js b/plugins/LocalFilesEditor/codemirror/lib/overlay.js deleted file mode 100644 index c4cdf9fc8..000000000 --- a/plugins/LocalFilesEditor/codemirror/lib/overlay.js +++ /dev/null @@ -1,51 +0,0 @@ -// Utility function that allows modes to be combined. The mode given -// as the base argument takes care of most of the normal mode -// functionality, but a second (typically simple) mode is used, which -// can override the style of text. Both modes get to parse all of the -// text, but when both assign a non-null style to a piece of code, the -// overlay wins, unless the combine argument was true, in which case -// the styles are combined. - -CodeMirror.overlayParser = function(base, overlay, combine) { - return { - startState: function() { - return { - base: CodeMirror.startState(base), - overlay: CodeMirror.startState(overlay), - basePos: 0, baseCur: null, - overlayPos: 0, overlayCur: null - }; - }, - copyState: function(state) { - return { - base: CodeMirror.copyState(base, state.base), - overlay: CodeMirror.copyState(overlay, state.overlay), - basePos: state.basePos, baseCur: null, - overlayPos: state.overlayPos, overlayCur: null - }; - }, - - token: function(stream, state) { - if (stream.start == state.basePos) { - state.baseCur = base.token(stream, state.base); - state.basePos = stream.pos; - } - if (stream.start == state.overlayPos) { - stream.pos = stream.start; - state.overlayCur = overlay.token(stream, state.overlay); - state.overlayPos = stream.pos; - } - stream.pos = Math.min(state.basePos, state.overlayPos); - if (stream.eol()) state.basePos = state.overlayPos = 0; - - if (state.overlayCur == null) return state.baseCur; - if (state.baseCur != null && combine) return state.baseCur + " " + state.overlayCur; - else return state.overlayCur; - }, - - indent: function(state, textAfter) { - return base.indent(state.base, textAfter); - }, - electricChars: base.electricChars - }; -}; diff --git a/plugins/LocalFilesEditor/codemirror/mode/clike/clike.css b/plugins/LocalFilesEditor/codemirror/mode/clike/clike.css deleted file mode 100644 index 21016d7b1..000000000 --- a/plugins/LocalFilesEditor/codemirror/mode/clike/clike.css +++ /dev/null @@ -1,6 +0,0 @@ -span.c-like-keyword {color: #90b;} -span.c-like-number {color: #291;} -span.c-like-comment {color: #a70;} -span.c-like-string {color: #a22;} -span.c-like-preprocessor {color: #049;} -span.c-like-var {color: #22b;} diff --git a/plugins/LocalFilesEditor/codemirror/mode/clike/clike.js b/plugins/LocalFilesEditor/codemirror/mode/clike/clike.js deleted file mode 100644 index 25bd79144..000000000 --- a/plugins/LocalFilesEditor/codemirror/mode/clike/clike.js +++ /dev/null @@ -1,181 +0,0 @@ -CodeMirror.defineMode("clike", function(config, parserConfig) { - var indentUnit = config.indentUnit, keywords = parserConfig.keywords, - cpp = parserConfig.useCPP, multiLineStrings = parserConfig.multiLineStrings, $vars = parserConfig.$vars; - var isOperatorChar = /[+\-*&%=<>!?|]/; - - function chain(stream, state, f) { - state.tokenize = f; - return f(stream, state); - } - - var type; - function ret(tp, style) { - type = tp; - return style; - } - - function tokenBase(stream, state) { - var ch = stream.next(); - if (ch == '"' || ch == "'") - return chain(stream, state, tokenString(ch)); - else if (/[\[\]{}\(\),;\:\.]/.test(ch)) - return ret(ch); - else if (ch == "#" && cpp && state.startOfLine) { - stream.skipToEnd(); - return ret("directive", "c-like-preprocessor"); - } - else if (/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/) - return ret("number", "c-like-number"); - } - else if (ch == "/") { - if (stream.eat("*")) { - return chain(stream, state, tokenComment); - } - else if (stream.eat("/")) { - stream.skipToEnd(); - return ret("comment", "c-like-comment"); - } - else { - stream.eatWhile(isOperatorChar); - return ret("operator"); - } - } - else if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return ret("operator"); - } - else if ($vars && ch == "$") { - stream.eatWhile(/[\w\$_]/); - return ret("word", "c-like-var"); - } - else { - stream.eatWhile(/[\w\$_]/); - if (keywords && keywords.propertyIsEnumerable(stream.current())) return ret("keyword", "c-like-keyword"); - return ret("word", "c-like-word"); - } - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) {end = true; break;} - escaped = !escaped && next == "\\"; - } - if (end || !(escaped || multiLineStrings)) - state.tokenize = tokenBase; - return ret("string", "c-like-string"); - }; - } - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return ret("comment", "c-like-comment"); - } - - function Context(indented, column, type, align, prev) { - this.indented = indented; - this.column = column; - this.type = type; - this.align = align; - this.prev = prev; - } - - function pushContext(state, col, type) { - return state.context = new Context(state.indented, col, type, null, state.context); - } - function popContext(state) { - return state.context = state.context.prev; - } - - // Interface - - return { - startState: function(basecolumn) { - return { - tokenize: tokenBase, - context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), - indented: 0, - startOfLine: true - }; - }, - - token: function(stream, state) { - var ctx = state.context; - if (stream.sol()) { - if (ctx.align == null) ctx.align = false; - state.indented = stream.indentation(); - state.startOfLine = true; - } - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - if (type == "comment") return style; - if (ctx.align == null) ctx.align = true; - - if ((type == ";" || type == ":") && ctx.type == "statement") popContext(state); - else if (type == "{") pushContext(state, stream.column(), "}"); - else if (type == "[") pushContext(state, stream.column(), "]"); - else if (type == "(") pushContext(state, stream.column(), ")"); - else if (type == "}") { - if (ctx.type == "statement") ctx = popContext(state); - if (ctx.type == "}") ctx = popContext(state); - if (ctx.type == "statement") ctx = popContext(state); - } - else if (type == ctx.type) popContext(state); - else if (ctx.type == "}") pushContext(state, stream.column(), "statement"); - state.startOfLine = false; - return style; - }, - - indent: function(state, textAfter) { - if (state.tokenize != tokenBase) return 0; - var firstChar = textAfter && textAfter.charAt(0), ctx = state.context, closing = firstChar == ctx.type; - if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : indentUnit); - else if (ctx.align) return ctx.column + (closing ? 0 : 1); - else return ctx.indented + (closing ? 0 : indentUnit); - }, - - electricChars: "{}" - }; -}); - -(function() { - function keywords(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - var cKeywords = "auto if break int case long char register continue return default short do sizeof " + - "double static else struct entry switch extern typedef float union for unsigned " + - "goto while enum void const signed volatile"; - - CodeMirror.defineMIME("text/x-csrc", { - name: "clike", - useCPP: true, - keywords: keywords(cKeywords) - }); - CodeMirror.defineMIME("text/x-c++src", { - name: "clike", - useCPP: true, - keywords: keywords(cKeywords + " asm dynamic_cast namespace reinterpret_cast try bool explicit new " + - "static_cast typeid catch false operator template typename class friend private " + - "this using const_cast inline public throw virtual delete mutable protected true " + - "wchar_t") - }); - CodeMirror.defineMIME("text/x-java", { - name: "clike", - keywords: keywords("abstract assert boolean break byte case catch char class const continue default " + - "do double else enum extends false final finally float for goto if implements import " + - "instanceof int interface long native new null package private protected public " + - "return short static strictfp super switch synchronized this throw throws transient " + - "true try void volatile while") - }); -}()); diff --git a/plugins/LocalFilesEditor/codemirror/mode/clike/index.html b/plugins/LocalFilesEditor/codemirror/mode/clike/index.html deleted file mode 100644 index 0836535d2..000000000 --- a/plugins/LocalFilesEditor/codemirror/mode/clike/index.html +++ /dev/null @@ -1,101 +0,0 @@ - - - -CodeMirror 2: C-like mode - - - - - - - - -CodeMirror 2: C-like mode
- -
Simple mode that tries to handle C-like languages as well as it
- can. Takes two configuration parameters: keywords, an
- object whose property names are the keywords in the language,
- and useCPP, which determines whether C preprocessor
- directives are recognized.
MIME types defined: text/x-csrc
- (C code), text/x-c++src (C++
- code), text/x-java (Java code).
MIME types defined: text/css.
MIME types defined: text/x-diff.